Skip to content

Add tests for misc types and type guards#78

Merged
Gudahtt merged 1 commit intomainfrom
add-misc-type-tests
Feb 10, 2023
Merged

Add tests for misc types and type guards#78
Gudahtt merged 1 commit intomainfrom
add-misc-type-tests

Conversation

@Gudahtt
Copy link
Copy Markdown
Member

@Gudahtt Gudahtt commented Feb 10, 2023

Type tests have been added for some types and type guards in misc.ts.

Type tests have been added for some types and type guards in `misc.ts`.
@Gudahtt Gudahtt marked this pull request as ready for review February 10, 2023 18:16
@Gudahtt Gudahtt requested a review from a team as a code owner February 10, 2023 18:16
}

//=============================================================================
// hasProperty
Copy link
Copy Markdown
Member Author

@Gudahtt Gudahtt Feb 10, 2023

Choose a reason for hiding this comment

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

There are some gaps in these tests; to be addressed in a later PR (edit: #79)

Copy link
Copy Markdown
Contributor

@mcmire mcmire left a comment

Choose a reason for hiding this comment

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

LGTM!


expectNotAssignable<RuntimeObject>(Symbol('test'));

// The RuntimeObject type gets confused by interfaces. This interface is a valid object,
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Oh, interesting! Good catch.

@Gudahtt Gudahtt merged commit 7f9e857 into main Feb 10, 2023
@Gudahtt Gudahtt deleted the add-misc-type-tests branch February 10, 2023 19:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants