packages/rest-typings/src/v1/channels/ChannelsOnlineProps.ts
import Ajv from 'ajv';
const ajv = new Ajv({
coerceTypes: true,
});
export type ChannelsOnlineProps = { query?: Record<string, any> };
const channelsOnlyPropsSchema = {
type: 'object',
properties: {
query: {
type: 'string',
nullable: true,
},
},
required: [],
additionalProperties: false,
};
export const isChannelsOnlineProps = ajv.compile<ChannelsOnlineProps>(channelsOnlyPropsSchema);