MCPcopy
hub / github.com/RocketChat/Rocket.Chat / api

Function api

apps/meteor/tests/data/api-data.ts:46–48  ·  view source on GitHub ↗
(path: TPath)

Source from the content-addressed store, hash-verified

44export type PathWithoutPrefix<TPath> = TPath extends `/v1/${infer U}` ? U : never;
45
46export function api<TPath extends PathWithoutPrefix<Path>>(path: TPath) {
47 return `${prefix}${path}` as const;
48}
49
50export function methodCall<TMethodName extends string>(methodName: TMethodName) {
51 return api(`method.call/${methodName}`);

Callers 15

installation.tsFile · 0.90
webdav.tsFile · 0.90
roles.tsFile · 0.90
getRoomInfoFunction · 0.90
groups.tsFile · 0.90
inviteUserFunction · 0.90
createUserAndChannelFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected