Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

타입스크립트로 배열의 마지막 인자 타입 지정하기 #93

Open
zerozoo-a opened this issue Oct 19, 2023 · 0 comments
Open

Comments

@zerozoo-a
Copy link
Owner

interface K {
    name: string;
};
interface T {
    age: number;
};

const k :K = {name:'t'};
const t: T = {age: 1};

type P = [K, T]

type P1 = [...K[], T];

const p1: P1 = [k, k, t];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant