Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

README.md

NetSuite UI Framework TypeScript Type Declarations

This package provides TypeScript type declarations for the NetSuite UI Framework (UIF). Type declarations describe the classes, methods, properties, and other APIs included in the framework. Type declarations allow the TypeScript compiler to validate the usage of these APIs and provide you with a rich IntelliSense experience in various IDEs.

Prerequisites

You will need a SuiteApp project in TypeScript using the NetSuite UI Framework.

Versioning

The NetSuite UI Framework and its TypeScript type declarations follow a versioning scheme where a new major version is released every 6 months. These major versions correspond to NetSuite versions as shown in the following table.

Version in NPM NetSuite Version
5.0.X 2024.1
6.0.X 2024.2
7.0.X 2025.1
8.0.X 2025.2

Installation

To use the NetSuite UI Framework TypeScript type declarations, follow these steps:

  1. Add the @oracle/netsuite-uif-types dependency to devDependencies in your package.json and specify an appropriate version based on the NetSuite version you will be developing against. Make sure that a typescript dependency is included as well.
"devDependencies": {
    "@oracle/netsuite-uif-types": "^8.0.0",
    "typescript": "^5.2.0"
}
  1. Open your tsconfig.json and include @oracle/netsuite-uif-types as an additional type root.
"compilerOptions": {
    "typeRoots": {
        "node_modules/@types",
        "node_modules/@oracle/netsuite-uif-types"
    }
}
  1. Install the new dependencies.
npm i

Contributing

This project welcomes contributions from the community. Before submitting a pull request, review our contribution guide.

License

Copyright (c) 2024 Oracle and/or its affiliates The Universal Permissive License (UPL), Version 1.0.