mirror of
				https://codeberg.org/yeentown/barkey.git
				synced 2025-10-31 13:34:12 +00:00 
			
		
		
		
	* ひとまず生成できるところまで * ファイル構成整理 * 生成コマンド整理 * misskey-jsへの組み込み * fix generator.ts * wip * fix generator.ts * fix package.json * 生成ロジックの調整 * 型レベルでのswitch-case機構をmisskey-jsからfrontendに持ち込めるようにした * 型チェック用のtsconfig.jsonを作成 * 他のエンドポイントを呼ぶ関数にも適用 * 未使用エンティティなどを削除 * misskey-js側で手動定義されていた型を自動生成された型に移行(ただしapi.jsonがvalidでなくなってしまったので後で修正する) * messagingは廃止されている(テストのビルドエラー解消) * validなapi.jsonを出力できるように修正 * 修正漏れ対応 * Ajvに怒られて起動できなかったところを修正 * fix ci(途中) * パラメータenumをやめる * add command * add api.json * 都度自動生成をやめる * 一気通貫スクリプト修正 * fix ci * 生成ロジック修正 * フロントの型チェックは結局やらなかったので戻しておく * fix pnpm-lock.yaml * add README.md --------- Co-authored-by: osamu <46447427+sam-osamu@users.noreply.github.com> Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
		
			
				
	
	
		
			12 lines
		
	
	
	
		
			389 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
	
		
			389 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
| import { expectType } from 'tsd';
 | |
| import * as Misskey from '../src';
 | |
| 
 | |
| describe('Streaming', () => {
 | |
| 	test('emit type', async () => {
 | |
| 		const stream = new Misskey.Stream('https://misskey.test', { token: 'TOKEN' });
 | |
| 		const mainChannel = stream.useChannel('main');
 | |
| 		mainChannel.on('notification', notification => {
 | |
| 			expectType<Misskey.entities.Notification>(notification);
 | |
| 		});
 | |
| 	});
 | |
| });
 |