fix(types): don't require all csp policies as keys (#9018)

This commit is contained in:
Daniel Roe 2021-03-19 15:28:03 +00:00 committed by GitHub
parent 0a98866894
commit b765552104
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -34,7 +34,7 @@ interface CspOptions {
addMeta?: boolean
allowedSources?: string[]
hashAlgorithm?: string
policies?: Record<CspPolicyName, string[]>
policies?: Partial<Record<CspPolicyName, string[]>>
reportOnly?: boolean
unsafeInlineCompatibility?: boolean
}