Skip to content

Replace requireAllProps with satisfies to cut down on runtime code and indirection. #1704

@igalklebanov

Description

@igalklebanov

Hey 👋

Nowadays, we have TypeScript's satisfies AllProps<T> to achieve the same effect requireAllProps<T> has - ensuring a transormer visitor returns a node with all of it's properties. No runtime code needed.

This requires bumping the minimum TypeScript version to at least 4.9.

According to brief unreliable check, this could reduce ~1.4kb in minified size. Small saving alone, but with other things we could really make Kysely more lightweight, while keeping the same feature set AND staying as maintainable.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions