-
Notifications
You must be signed in to change notification settings - Fork 8
/
nuxt.d.ts
77 lines (68 loc) · 1.81 KB
/
nuxt.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
type LogMessageType = undefined | null | 'warning' | 'error'
type LogMessage = [Date, string, LogMessageType]
type LogFn = (s: string) => void;
type PromiseFn<T = any> = (a: T | PromiseLike<T> | unknown | PromiseLike<any>) => any
interface MspData {
type: 'bf' | 'qs' | 'kiss' | 'inav' | 'ardu' | 'fettec' | null,
protocol_version: number
api_version: string,
batteryData: {
cellCount: number,
capacity: number,
voltage: number,
drawn: number,
amps: number
} | null,
motorCount: number
}
interface FourWayResponse {
command: number;
address: number;
ack: number;
checksum: number;
params: Uint8Array;
}
type SettingsType = 'select' | 'bool' | 'string' | 'number' | 'rtttl';
type SettingsSelectOptionsType = { label: string, value: number };
interface HexData {
address: number,
bytes: number,
data: number[]
}
interface Hex {
data: HexData[],
endOfFile: boolean,
bytes: number,
startLinearAddress: number
}
interface BlobFolderFile {
name: string;
url: string;
}
interface BlobFolder {
name: string,
files: BlobFolderFile[],
children: BlobFolder[]
}
type AmjType = {
type: 'bl_update' | 'fw_update',
githash: string,
version: string,
mcuType: 'F421' | 'F051' | 'F415' | 'E230' | 'G071' | 'F031',
pin: 'PA2' | 'PB4' | string,
hex: string
};
type CacheEntry = {
name: string,
url: string
};
declare module 'bluejay-rtttl-parse' {
// biome-ignore lint/complexity/noStaticOnlyClass: <explanation>
export default class Rtttl {
static fromBluejayStartupMelody(startUpMelody: Uint8Array, name?: string): string;
static toBluejayStartupMelody(rtttl: string, length?: number): {
data: Uint8Array,
errorCodes: number[]
};
}
};