mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-15 04:43:08 +02:00
d071d18dd7
* wip * wip * fix * clean up * Update tsconfig.json * Update activitypub.ts * wip
22 lines
558 B
TypeScript
22 lines
558 B
TypeScript
import define from '../define.js';
|
|
|
|
export const meta = {
|
|
requireCredential: false,
|
|
} as const;
|
|
|
|
export 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;
|
|
});
|