mirror of
https://github.com/paricafe/misskey.git
synced 2024-12-04 17:26:43 -06:00
23 lines
548 B
TypeScript
23 lines
548 B
TypeScript
|
import define from '../define';
|
||
|
|
||
|
export const meta = {
|
||
|
requireCredential: false,
|
||
|
} as const;
|
||
|
|
||
|
const paramDef = {
|
||
|
type: 'object',
|
||
|
properties: {
|
||
|
required: { type: 'boolean' },
|
||
|
string: { type: 'string' },
|
||
|
default: { type: 'string', default: 'hello' },
|
||
|
nullableDefault: { type: 'string', nullable: true, default: 'hello' },
|
||
|
id: { type: 'string', format: 'misskey:id' },
|
||
|
},
|
||
|
required: ['required'],
|
||
|
} as const;
|
||
|
|
||
|
// eslint-disable-next-line import/no-default-export
|
||
|
export default define(meta, paramDef, async (ps, me) => {
|
||
|
return ps;
|
||
|
});
|