Indicates that param accepts or returns a string value. The following table shows examples of type annotations you may see in Type annotations describe the types the element to the left of the colonĬan accept or return. To learn more about supported types and type expressions, refer to theĪ colon after a variable, parameter name, property name, or function signature denotes a The following table provides aĪn array type, where values may only be strings.Ī union type, where the value may be either a number or a string.Īn array type, where values are a complex (union) type.Ī tuple type, where the value is a two-element array that must contain a number and a string in that order.Īn object type, where the value is an instance of googletag.Slot.Ī function type with no defined arguments and no return value. This reference uses TypeScript notation to describe types.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |