Coder Social home page Coder Social logo

orclapex-js's Introduction

TypeScript Definitions for Oracle Application Express JavaScript API

Introduction

TypeScript is a superset of JavaScript that introduces modern JS features and strongly-typed declarations that can be used to help reduce coding errors. TypeScript Declaration Files capture these definitions about third-party JavaScript libraries and/or modules, and are then used by the compiler for error-checking. Intergrated Development Environments (IDEs) that support TypeScript further enhance the developer experience by introducing features like error-highlighting and intellisense.

Intellisense support in Visual Studio Code:

Intellisense support in Visual Studio Code

Intellisense support in Atom:

Intellisense support in Atom

The definitions in this project are manually curated based on Oracle's official APEX documentation. More work is required to validate that the definitions against the source JavaScript files, and also to complete the JSDoc comments that support the intellisense code hints. The ultimate goal is to integrate these defintions for the Oracle Application Express (APEX) JavaScript API, into the DefinitelyTyped repository.


IMPORTANT!

Please be mindful that this project is a work-in progress. Please feel free to post issues and/or recommendations. If you would like to contribute to the project, please contact the project owner.


Software Requirements

To install TypeScript, run the following command after Node.js is installed:

$ npm install -g typescript

For Atom, please also install the atom-typescript plugin.

Getting Started

  1. Create the project folder.
  2. Initialise the project:
$ npm init
  1. Install the package from Git:
$ npm install --save-dev https://github.com/fuzziebrain/orclapex-js.git
  1. Create a tsconfig.json file in the project root folder, containing at minimum, the following configuration:
{
  "compilerOptions": {
    "module": "commonjs",
    "lib": [
      "es6",
      "dom"
    ]
  }
}
  1. Add the reference to your TS file:
/// <reference types="orclapex-js" />

For those who are not ready to start with TypeScript, Visual Studio Code provides type-checking and intellisense support for JavaScript. Add the following two lines of code:

//@ts-check
/// <reference types="orclapex-js" />

APEX Nitro Support for TypeScript

APEX Nitro version 4 and later supports TypeScript. Instructions to set up the project configuration forthcoming.

Configure APEX Nitro support for TypeScript

Project Status

API / Namespace / Functions / Objects Implementation Status Code Hints (JSDoc) Test Code Validation
apex namespace In progress In progress Not started Not started
apex.da namespace Done Done Not started Not started
apex.debug namespace Done Done Not started Not started
apex.event namespace In progress Not started Not started Not started
apex.item In progress Not started Not started Not started
apex.lang namespace In progress Not started Not started Not started
apex.message namespace In progress Not started Not started Not started
apex.navigation namespace In progress Not started Not started Not started
apex.page namespace In progress Not started Not started Not started
apex.region In progress Not started Not started Not started
apex.server namespace In progress Not started Not started Not started
apex.storage namespace In progress Not started Not started Not started
apex.util namespace In progress In progress Not started Not started
apex.widget namespace In progress In progress Not started Not started
Events Not started Not started Not started Not started
Non-namespace JavaScript APIs In progress In progress Not started Not started
Legacy JavaScript APIs Not implementing - - -

orclapex-js's People

Contributors

fuzziebrain avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

orclapex-js's Issues

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.