Fix import of @owlboard/ts-types
Signed-off-by: Fred Boniface <fred@fjla.uk>
This commit is contained in:
parent
1adf24d105
commit
658b0996bc
2
.npmrc
2
.npmrc
@ -1 +1 @@
|
|||||||
@owlboard:registry=https://git.fjla.uk/api/packages/OwlBoard/npm/
|
registry=https://git.fjla.uk/api/packages/OwlBoard/npm/
|
2011
package-lock.json
generated
2011
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -30,7 +30,7 @@
|
|||||||
"author": "Fred Boniface",
|
"author": "Fred Boniface",
|
||||||
"license": "GPL-3.0-or-later",
|
"license": "GPL-3.0-or-later",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@owlboard/ts-types": "^0.0.1",
|
"@owlboard/ts-types": "^0.0.3",
|
||||||
"eslint": "^8.39.0",
|
"eslint": "^8.39.0",
|
||||||
"prettier": "^2.8.8",
|
"prettier": "^2.8.8",
|
||||||
"typescript": "^5.1.6"
|
"typescript": "^5.1.6"
|
||||||
|
@ -13,7 +13,7 @@ function transformNrcc(input: any): NrccMessage[] {
|
|||||||
input.message = [input.message]
|
input.message = [input.message]
|
||||||
}
|
}
|
||||||
for (const item of input?.message) {
|
for (const item of input?.message) {
|
||||||
let message = {
|
let message: NrccMessage = {
|
||||||
severity: item?.severity,
|
severity: item?.severity,
|
||||||
xhtmlMessage: item?.xhtmlMessage
|
xhtmlMessage: item?.xhtmlMessage
|
||||||
}
|
}
|
||||||
@ -23,11 +23,11 @@ function transformNrcc(input: any): NrccMessage[] {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function transformTrainServices(input: Object): TrainServices[] {
|
function transformTrainServices(input: Object): TrainServices[] {
|
||||||
let output: TrainServices[]
|
let output: TrainServices[] = []
|
||||||
return output
|
return output
|
||||||
}
|
}
|
||||||
|
|
||||||
function transformLocation(input: any): ServiceLocation {
|
function transformLocation(input: any): ServiceLocation[] {
|
||||||
let output: ServiceLocation[] = []
|
let output: ServiceLocation[] = []
|
||||||
if (!Array.isArray(input)) {
|
if (!Array.isArray(input)) {
|
||||||
input = [input]
|
input = [input]
|
||||||
|
@ -27,7 +27,7 @@
|
|||||||
/* Modules */
|
/* Modules */
|
||||||
"module": "commonjs", /* Specify what module code is generated. */
|
"module": "commonjs", /* Specify what module code is generated. */
|
||||||
// "rootDir": "./", /* Specify the root folder within your source files. */
|
// "rootDir": "./", /* Specify the root folder within your source files. */
|
||||||
// "moduleResolution": "node10", /* Specify how TypeScript looks up a file from a given module specifier. */
|
"moduleResolution": "node16", /* Specify how TypeScript looks up a file from a given module specifier. */
|
||||||
// "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */
|
// "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */
|
||||||
// "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */
|
// "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */
|
||||||
// "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */
|
// "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */
|
||||||
|
Loading…
Reference in New Issue
Block a user