Skip to content
This repository has been archived by the owner on Oct 5, 2023. It is now read-only.

fix: stricter type #248

Merged
merged 1 commit into from
Jan 31, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export default class OASNormalize {

opts: Options;

type: boolean | string;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

huh, wonder why i did this as boolean

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

technically it returns false:

return false;

type: ReturnType<typeof utils.getType>;

constructor(file: any, opts?: Options) {
this.file = file;
Expand Down