Skip to content

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