Skip to content

Commit

Permalink
型を切り出す
Browse files Browse the repository at this point in the history
  • Loading branch information
k1tikurisu committed Dec 17, 2023
1 parent bf5d5b7 commit dbe0d04
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 1 addition & 4 deletions sample.ts
@@ -1,7 +1,4 @@
type SampleType = {
id: number;
name: string;
}
import { SampleType } from "./type";

const Sample = ({ id, name }: SampleType) => {
console.log(id, name);
Expand Down
4 changes: 4 additions & 0 deletions type.ts
@@ -0,0 +1,4 @@
export type SampleType = {
id: number;
name: string;
}

0 comments on commit dbe0d04

Please sign in to comment.