Type Alias ApiExtensionRecord

ApiExtensionRecord: {
    [k: string]: ApiExtensionMethods;
} & {
    [K in `/${string}`]: never
}

A record of API extension methods that can be used to extend the API

The keys of the record must not start with a slash

const api = createApi(schema, (api) => ({
'my-extension': {
get: () => {
return 'Hello World';
}
}
}))