@xylabs/static-implements
Version:
Base functionality used throughout XY Labs TypeScript/JavaScript libraries
1 lines • 547 B
Source Map (JSON)
{"version":3,"sources":["../../src/staticImplements.ts"],"sourcesContent":["/**\n * Annotation to decorate classes which implement static methods\n * @returns The decorated class requiring it to implement\n * the members of the the type as static properties/methods\n */\nexport function staticImplements<T>() {\n return <U extends T>(constructor: U) => {\n // eslint-disable-next-line @typescript-eslint/no-unused-expressions\n constructor\n }\n}\n"],"mappings":";AAKO,SAAS,mBAAsB;AACpC,SAAO,CAAc,gBAAmB;AAEtC;AAAA,EACF;AACF;","names":[]}