Use this function to specify a TypeScript type for a UI5 type.
import Control from "sap/ui/Control";@ui5Extend("optional.name.MyControl")export class MyControl extends Ui5Base(Control, { metadata: { properties: { state: { type: typed<"on" | "off" | "maybe">()("string") } }, // … }}) { // …} Copy
import Control from "sap/ui/Control";@ui5Extend("optional.name.MyControl")export class MyControl extends Ui5Base(Control, { metadata: { properties: { state: { type: typed<"on" | "off" | "maybe">()("string") } }, // … }}) { // …}
Generated using TypeDoc
Use this function to specify a TypeScript type for a UI5 type.
Example