Skip to content

Remove references to any in src/keri/core directory #340

@iFergal

Description

@iFergal

WebOfTrust/keria#369 and subsequent PRs we resolve a lot of the typing in the app directory, so this is a ticket to track improving the typing in the src/keri/core directory.

There may be some overlap/dependencies or cases where we can use Pick and Omit to extract parts of the generated types.

In general:

  • unknown or Record<string, unknown> should be preferred over any if we truly cannot type it.
  • The Dict interface should be removed in favour of Record<string, unknown> as it has only been used as Dict<any> to be similar to keripy, but isn't idiomatic to TS.
  • Everything else should have a type.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions