isTextured() function
Type guard for TexturedResourceInterface.
Signature:
declare function isTextured<T extends ResourceInterface>(resource: T): resource is T & TexturedResourceInterface;
Parameters
Parameter |
Type |
Description |
---|---|---|
resource |
T |
resource is T & TexturedResourceInterface