odoo-import

0.1.3 • Public • Published

odoo-import

Adapt the Odoo module system to TypeScript.

  • Infers the following Odoo-specific module declaration syntaxes as normal TypeScript references:
    • odoo.define('foo.bar')
    • /** @odoo-module alias=foo.bar */
    • import '@foo/bar'
  • Populate autocompletions with appropriate items!

Get Started

git clone https://github.com/vidi-odoo/odoo-import
npm i && npx tsc

# in your project
npm i typescript path/to/odoo-import

Then configure your tsconfig.json to use the plugin, allowJs to true and enjoy!

Debug

TSS_DEBUG_BRK=9559 code example # break until attach
TSS_DEBUG=9559 code example

Readme

Keywords

none

Package Sidebar

Install

npm i odoo-import

Weekly Downloads

0

Version

0.1.3

License

MIT

Unpacked Size

15.9 kB

Total Files

9

Last publish

Collaborators

  • desdaemon