Skip to content
This repository has been archived by the owner on Sep 26, 2024. It is now read-only.

Refactor: strict DB types #1173

Merged
merged 1 commit into from
Mar 7, 2023
Merged

Refactor: strict DB types #1173

merged 1 commit into from
Mar 7, 2023

Conversation

luixo
Copy link
Contributor

@luixo luixo commented Mar 7, 2023

No description provided.

@luixo luixo self-assigned this Mar 7, 2023
@luixo luixo temporarily deployed to refactor/strict-db-types - backend/mainnet PR #1173 March 7, 2023 21:42 — with Render Destroyed
@luixo luixo temporarily deployed to refactor/strict-db-types - backend/testnet PR #1173 March 7, 2023 21:42 — with Render Destroyed
@luixo luixo temporarily deployed to refactor/strict-db-types - frontend PR #1173 March 7, 2023 21:45 — with Render Destroyed
@github-actions
Copy link

github-actions bot commented Mar 7, 2023

Bundle size diff

Type Old size New size Diff
Client 2.95 MB 2.95 MB 0 B (0.00%)
Server 601.76 KB 601.76 KB 0 B (0.00%)


export const mapDatabaseActionToAction = (action: DatabaseAction): Action => {
switch (action.kind) {
const mapDatabaseActionToAction = (...[kind, args]: ArgsTuple): Action => {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is kinda messy, but it is a known request feature in typescript.

@luixo luixo merged commit a4718d8 into master Mar 7, 2023
@luixo luixo deleted the refactor/strict-db-types branch March 7, 2023 22:11
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant