MCPcopy Index your code
hub / github.com/MALSync/MALSync / isReservedKey

Function isReservedKey

src/chibiScript/ChibiRegistry.ts:3–5  ·  view source on GitHub ↗
(key: T)

Source from the content-addressed store, hash-verified

1const reservedKeys = ['url', 'ui', 'provider', 'trigger', 'pageObject', 'element'] as const;
2export type ReservedKey = (typeof reservedKeys)[number];
3export function isReservedKey<T extends string>(key: T): T extends ReservedKey ? true : false {
4 return reservedKeys.includes(key as ReservedKey) as ReturnType<typeof isReservedKey<T>>;
5}
6
7export class ChibiRegistry<T = any> {
8 private store: Map<string, T> = new Map();

Callers 1

coreFunctions.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected