This package provides general type definitions.
- assisted-installer-service
- accounts-management-service (non-comprehensive)
From the command-line execute:
$ yarn add -D @openshift-assisted/types
Now you can import types as following:
import { Cluster } from '@openshift-assisted/types/assisted-installer-service';
// or...
import { AccessTokenCfg } from '@openshift-assisted/types/accounts-management-service';
The types for the assisted-installer-service
are generated automatically.
In order to update the types use the following script defined in the package.json
:
$ yarn update-types:assisted-installer-service
The types for the accounts-management-service
are not generated automatically (for now, maybe they
will in the future if there is a need to do so...).