Skip to content

Commit

Permalink
refactor(yaml): replace any with unknown in ResultType constitu…
Browse files Browse the repository at this point in the history
…ents (#5392)

initial commit
  • Loading branch information
timreichen authored Jul 10, 2024
1 parent 29cd266 commit 9f259c1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions yaml/_loader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,7 @@ interface LoaderStateOptions {
onWarning?(error?: YamlError): void;
}

// deno-lint-ignore no-explicit-any
type ResultType = any[] | Record<string, any> | string;
type ResultType = unknown[] | Record<string, unknown> | string;

const ESCAPED_HEX_LENGTHS = new Map<number, number>([
[0x78, 2], // x
Expand Down

0 comments on commit 9f259c1

Please sign in to comment.