@ui5-next/types
TypeScript icon, indicating that this package has built-in type declarations

1.4.20 • Public • Published

Open UI5 Types

CircleCI npm (scoped) Node CI codecov

Provide ES6 UI5 types definition. To support vscode Code IntelliSense.

how to

  1. npm install @ui5-next/types@latest
  2. include @type to jsconfig/tsconfig file
{
  "compilerOptions": {},
  "include": ["src","./node_modules/@ui5-next/types/bin/index.d.ts"]
}

types

  • [x] class
  • [x] class method
  • [x] class static method
  • [x] class constructor
  • [x] class method parameters type
  • [x] class method return type
  • [x] enums
  • [x] types
  • [x] interfaces
  • [x] namespace type
  • [x] JSX props support
  • [x] how to document
  • [x] CI nightly test

comments

// following methods return type & parameters will be `any`
// because their parameters are different in parent-class & sub-class
export const skipMethods = [
  "sap.ui.base.Object.defineClass",
  "parseValue",
  "setVisible",
  "getDomRef",
  "getControlMessages",
  "clone",
  "setDatetime",
  "getTooltip",
  "setValue",
  "getSelectedIndex",
  "getValue",
  "setAuthorPicture",
  "setPriority",
  "addSelectionInterval",
  "publish",
  "subscribe",
  "validateValue",
  "refresh",
  "filter",
  "sort",
  "bindContext",
  "bindList",
  "fireChange",
  "getRootContexts",
  "setSelectedIndex",
  "setSelectionInterval",
  "setEnableGrouping",
  "getContextByIndex",
  "setGroupBy",
  "selectAll",
  "removeSelectionInterval",
  "sap.ui.core.mvc.XMLView.registerPreprocessor",
]

// those types are not exist in source
// so those types will be replace by 'any'
export const NotExistedTypes = [
  "sap.m.IconTabBarSelectList",
  "sap.ui.test.qunit",
  "sap.ui.core.support.Support",
  "appointmentsSorterCallback",
  "sap.m.TextField",
  "sap.m.P13nConditionOperation",
  "DomRef",
  "iScroll",

  "sap.ui.integration.CardActionType",
  "sap.ui.commons.form.SimpleFormLayout",
  "sap.ui.core.dnd.DragSession",
  "sap.m.SinglePlanningCalendarGrid",
  "sap.m.PlanningCalendarHeader",
  "sap.m.TimePickerSlider",
  "sap.ui.layout.ResponsiveSplitterPage",
  "sap.ui.comp.smartvariants.SmartVariantManagement",
  "sap.ui.commons.TitleLevel",
  "sap.m.LigthBox",
  "sap.ui.fl.Layer",

  "sap.ui.fl.write._internal.transport.TransportDialog"
];

CHANGELOG

LICENSE

Readme

Keywords

none

Package Sidebar

Install

npm i @ui5-next/types

Weekly Downloads

1

Version

1.4.20

License

MIT

Unpacked Size

10.2 MB

Total Files

26

Last publish

Collaborators

  • suntao