type(...)
type(val: ObjectType): this;
type(val: string): this;
Sets the Z.ObjectType for this object.
Parameters
Parameter | Type | Description |
---|---|---|
val | Z.ObjectType or string | The object type to set. If val is a string then a Z.ObjectType will be constructed, interpreting the string as a filename or URL. |
Returns
this