Fix import of @owlboard/ts-types
Signed-off-by: Fred Boniface <fred@fjla.uk>
This commit is contained in:
@@ -13,7 +13,7 @@ function transformNrcc(input: any): NrccMessage[] {
|
||||
input.message = [input.message]
|
||||
}
|
||||
for (const item of input?.message) {
|
||||
let message = {
|
||||
let message: NrccMessage = {
|
||||
severity: item?.severity,
|
||||
xhtmlMessage: item?.xhtmlMessage
|
||||
}
|
||||
@@ -23,11 +23,11 @@ function transformNrcc(input: any): NrccMessage[] {
|
||||
}
|
||||
|
||||
function transformTrainServices(input: Object): TrainServices[] {
|
||||
let output: TrainServices[]
|
||||
let output: TrainServices[] = []
|
||||
return output
|
||||
}
|
||||
|
||||
function transformLocation(input: any): ServiceLocation {
|
||||
function transformLocation(input: any): ServiceLocation[] {
|
||||
let output: ServiceLocation[] = []
|
||||
if (!Array.isArray(input)) {
|
||||
input = [input]
|
||||
|
||||
Reference in New Issue
Block a user