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

fix: stricter type #248

merged 1 commit into from
Jan 31, 2023

Conversation

kanadgupta
Copy link
Member

🧰 Changes

As part of the work I'm doing in readmeio/rdme#735 I'm using the type value that's used in the OASNormalize class. This PR gives the type value a stricter TS type.

🧬 QA & Testing

I npm link'd it to rdme and confirmed the stricter type is surfaced properly:

CleanShot 2023-01-31 at 12 11 38@2x

@kanadgupta kanadgupta added the enhancement New feature or request label Jan 31, 2023
@kanadgupta kanadgupta requested a review from erunion January 31, 2023 18:12
@kanadgupta kanadgupta marked this pull request as ready for review January 31, 2023 18:13
@@ -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;

@erunion erunion merged commit 3335c83 into main Jan 31, 2023
@erunion erunion deleted the chore/stricter-type branch January 31, 2023 18:16
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants