Port secret-scanning.js to TypeScript (#51187)
This commit is contained in:
12
src/types.ts
12
src/types.ts
@@ -74,6 +74,18 @@ export type Context = {
|
||||
languages?: Languages
|
||||
redirectNotFound?: string
|
||||
earlyAccessPageLinks?: string
|
||||
secretScanningData?: SecretScanningData[]
|
||||
}
|
||||
|
||||
export type SecretScanningData = {
|
||||
provider: string
|
||||
supportedSecret: string
|
||||
secretType: string
|
||||
versions: Record<string, string>
|
||||
isPublic: boolean
|
||||
isPrivateWithGhas: boolean
|
||||
hasPushProtection: boolean
|
||||
hasValidityCheck: boolean | string
|
||||
}
|
||||
|
||||
type Language = {
|
||||
|
||||
Reference in New Issue
Block a user