-
Notifications
You must be signed in to change notification settings - Fork 450
Expand file tree
/
Copy pathtypes.d.ts
More file actions
53 lines (48 loc) · 1.45 KB
/
types.d.ts
File metadata and controls
53 lines (48 loc) · 1.45 KB
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
import type { NetlifyAPI } from '@netlify/api'
import type { FrameworksAPIPaths } from '../utils/frameworks-api.ts'
import type { LocalState } from '../utils/types.ts'
import type { MinimalAccount, GlobalConfigStore, SiteInfo } from '../utils/types.ts'
import type { NormalizedCachedConfigConfig } from '../utils/command-helpers.js'
import type { CachedConfig } from '../lib/build.js'
// eslint-disable-next-line @typescript-eslint/no-explicit-any
export type $TSFixMe = any
export type NetlifySite = {
root?: string
configPath?: string
siteId?: string
get id(): string | undefined
set id(id: string): void
}
/**
* The netlify object inside each command with the state
* TODO(serhalp): Rename. These aren't options. They're more like context.
*/
export type NetlifyOptions = {
accounts: MinimalAccount[]
api: NetlifyAPI
apiOpts: {
userAgent: string
scheme?: string
host?: string
pathPrefix?: string
},
repositoryRoot: string
/** Absolute path of the netlify configuration file */
configFilePath: string
/** Relative path of the netlify configuration file */
relConfigFilePath: string
site: NetlifySite
siteInfo: SiteInfo
config: NormalizedCachedConfigConfig
cachedConfig: CachedConfig
globalConfig: GlobalConfigStore
state: LocalState
frameworksAPIPaths: FrameworksAPIPaths
}
export interface AddressInUseError extends Error {
code: 'EADDRINUSE'
errno: number
syscall: 'listen'
address: string
port: number
}