open-vault/ui/types/generate-declaration.md
claire bontempo ccd4c3701d
UI: pki import issuer (#18634)
* create pki ca import component

* add serial number to cert parser

* convert to ts

* remove comments

* reset yarn.lock

* fixed yarn lock

* fix comment

* add declaration for base cert
2023-01-09 16:46:02 -08:00

413 B

To generate a declaration file run yarn tsc <javascript file to declare> --declaration --allowJs --emitDeclarationOnly --outDir <type file location>

For example, the following command generates a declaration file called base.d.ts for the pki certificate base.js model:

yarn tsc ./app/models/pki/certificate/base.js --declaration --allowJs --emitDeclarationOnly --outDir types/vault/models/pki/certificate