| 57 | |
| 58 | // tslint:disable-next-line:interface-name |
| 59 | export interface ISerializable { |
| 60 | getClassMetadata(): ClassMetadata; |
| 61 | getConstructor(): SerializableCtor<ISerializable>; |
| 62 | |
| 63 | /** |
| 64 | * Gets a value by the metadata key. |
| 65 | * Intended for internal use only. |
| 66 | */ |
| 67 | // tslint:disable-next-line:no-any Serializables work with arbitrary data |
| 68 | Serializable$get(key: string): any; |
| 69 | |
| 70 | /** |
| 71 | * Sets a value by the metadata key. |
| 72 | * Intended for internal use only. |
| 73 | */ |
| 74 | // tslint:disable-next-line:no-any Serializables work with arbitrary data |
| 75 | Serializable$set(key: string, value: any): void; |
| 76 | |
| 77 | /** |
| 78 | * Checks whether the key has a non-null and non-undefined value. |
| 79 | * Intended for internal use only. |
| 80 | */ |
| 81 | Serializable$has(key: string): boolean; |
| 82 | } |
| 83 | |
| 84 | /** |
| 85 | * Function that allows users to just specify the parts of ClassMetadata they |
no outgoing calls
no test coverage detected