Skip to content

Commit

Permalink
pos 型
Browse files Browse the repository at this point in the history
  • Loading branch information
toririm committed Oct 6, 2024
1 parent 3a14d5b commit 4999c4a
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions app/components/functional/useOrderState.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,9 @@ import { OrderEntity } from "~/models/order";
type BaseAction<TypeName extends string> = { type: TypeName };
type Action<
TypeName extends string,
U extends { [K in keyof U]: K extends "type" ? never : unknown } = Record<
never,
never
>,
U extends { [K in keyof U]: K extends string ? unknown : never } & {
[K in keyof U]: K extends "type" ? never : unknown;
} = Record<never, never>,
> = BaseAction<TypeName> & U;

type Clear = Action<"clear", { effectFn?: () => void }>;
Expand Down

0 comments on commit 4999c4a

Please sign in to comment.