MCPcopy
hub / github.com/AstrBotDevs/AstrBot / typed

Function typed

dashboard/src/api/v1.ts:192–194  ·  view source on GitHub ↗
(response: Promise<unknown>)

Source from the content-addressed store, hash-verified

190type ListConversationsQuery = NonNullable<ListConversationsData['query']>;
191
192function typed<T>(response: Promise<unknown>): V1Response<T> {
193 return response as unknown as V1Response<T>;
194}
195
196export function isLegacyFallbackError(error: unknown): boolean {
197 const axiosError = error as {

Callers 15

withLegacyFallbackFunction · 0.85
schemaFunction · 0.85
listFunction · 0.85
createFunction · 0.85
getFunction · 0.85
updateFunction · 0.85
renameFunction · 0.85
deleteFunction · 0.85
runtimeFunction · 0.85
replaceFunction · 0.85
upsertFunction · 0.85
typesFunction · 0.85

Calls

no outgoing calls

Tested by 1

testFunction · 0.68