Giter Site home page Giter Site logo

types's Introduction

Open UI5 Types

CircleCI npm (scoped)

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

  • class
  • class method
  • class static method
  • class constructor
  • class method parameters type
  • class method return type
  • enums
  • types
  • interfaces
  • namespace type
  • JSX props support
  • how to document

to do

  • CI nightly build

comments

// following methods return type & parameters will be `any`
// because there parameters are different in parent-class & sub-class
export const skipMethods = [
  "sap.ui.base.Object.defineClass",
  "parseValue",
  "setVisible",
  "getDomRef",
  "getControlMessages",
  "clone",
  "setDatetime",
  "getTooltip",
  "setValue",
  "getValue",
  "setAuthorPicture",
  "setPriority",
  "addSelectionInterval",
  "publish",
  "subscribe",
  "validateValue",
  "refresh",
  "filter",
  "sort",
  "bindContext",
  "bindList",
  "fireChange",
  "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",
  "sap.ui.fl.Change",
  "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"
]

types's People

Contributors

soontao avatar lucasheim avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.