Skip to content
Snippets Groups Projects
Commit 2f8f6431 authored by syuilo's avatar syuilo
Browse files

✌️

parent aace7a19
No related branches found
No related tags found
No related merge requests found
import { ID, InstanceMetadata, Note, OriginType, Page, ServerInfo, Stats, User, UserSorting } from './types';
import { ID, InstanceMetadata, Note, OriginType, Page, ServerInfo, Stats, User, UserSorting } from './entities';
type TODO = Record<string, any>;
......
File moved
import { APIClient } from './api';
import { Endpoints } from './endpoints';
import Stream from './streaming';
import { Acct } from './acct';
export {
APIClient,
Endpoints,
Stream,
Acct
};
export * as entities from './types';
export * as api from './api';
export * as entities from './entities';
/**
* Unit testing TypeScript types.
* with https://github.com/SamVerschueren/tsd
*/
import { expectType } from 'tsd';
import * as Misskey from '../src';
describe('API', () => {
test('returns node that has sprcified type', async () => {
const res = await Misskey.api.request('https://misskey.test', 'meta', { detail: true }, 'TOKEN');
expectType<Misskey.entities.InstanceMetadata>(res);
});
});
// RESERVED
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment