Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- export abstract class ABaseModel {
- public static isKeyOf<T>(propName: (keyof T)): string {
- return propName;
- }
- }
- export class Model extends ABaseModel {
- public id: number;
- public uid: string;
- public createdByUid: string;
- }
- Model.isKeyOf<Model>('id');
- Model.isKeyOf('id');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement