Fix missing exports

This commit is contained in:
Piotr Rogowski 2021-09-26 15:59:47 +02:00
parent 754da23ad1
commit 70cb679d9c
No known key found for this signature in database
GPG Key ID: F40F61D5587F5673
6 changed files with 19 additions and 12 deletions

View File

@ -8,6 +8,10 @@ Make sure you have registry specified in the `.npmrc` file:
@speedy-tuner:registry=https://npm.pkg.github.com
```
Authenticate to GitHub Packages:
[authenticating-to-github-packages](https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-npm-registry#authenticating-to-github-packages)
Proceed with the installation:
```bash

3
src/index.ts Normal file
View File

@ -0,0 +1,3 @@
export * from './types/config';
export * from './types/state';
export * from './types/tune';

View File

@ -1,12 +0,0 @@
export interface Constant {
units?: string;
value: string | number;
}
export interface Constants {
[name: string]: Constant;
}
export interface Tune {
constants: Constants;
}

12
src/types/tune.ts Normal file
View File

@ -0,0 +1,12 @@
export interface TuneConstant {
units?: string;
value: string | number;
}
export interface TuneConstants {
[name: string]: TuneConstant;
}
export interface Tune {
constants: TuneConstants;
}