Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Doc type to allow interfaces #44

Closed
wants to merge 1 commit into from
Closed

Conversation

iota-pi
Copy link

@iota-pi iota-pi commented Sep 10, 2022

The current type definition for Doc doesn't allow simple interfaces such as:

interface Foo {
    a: string,
}

Expanding the type definition to a Record type fixes this and greatly improves useability with Typescript.

The current type definition for Doc doesn't allow simple interfaces such as:
interface Foo {
    a: string,
}

Expanding it to a Record type fixes this
@iota-pi
Copy link
Author

iota-pi commented Sep 16, 2022

This is an issue still but this doesn't fix it as it results in Typescript assigning any as the type of Doc - not helpful!

Related to: microsoft/TypeScript#15300

@iota-pi iota-pi closed this Sep 16, 2022
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.

1 participant