Slackbot
04/24/2021, 12:46 PM이찬희
04/24/2021, 12:48 PMTQueryFn
이 TData
을 리턴 타입으로 쓰고 있고, TData
는 TQueryFn
의 리턴 타입을 추론해서 쓰는 중인데이찬희
04/24/2021, 12:49 PMHyeseong Kim
04/24/2021, 12:53 PMHyeseong Kim
04/24/2021, 12:57 PMHyeseong Kim
04/24/2021, 12:57 PMHyeseong Kim
04/24/2021, 12:58 PMHyeseong Kim
04/24/2021, 12:58 PMHyeseong Kim
04/24/2021, 12:58 PMHyeseong Kim
04/24/2021, 12:59 PMHyeseong Kim
04/24/2021, 1:00 PM이찬희
04/24/2021, 1:01 PMHyeseong Kim
04/24/2021, 1:02 PM이찬희
04/24/2021, 1:02 PMHyeseong Kim
04/24/2021, 1:02 PMHyeseong Kim
04/24/2021, 1:02 PM이찬희
04/24/2021, 1:02 PM이찬희
04/24/2021, 1:02 PM이찬희
04/24/2021, 1:05 PMextends (...args: any[]) => any
처럼 extends
이후에 오는 것들은 따로 제네릭으로 안해도 잘 추론이 되는군요. any
가 추론될 줄 알고 안했었는데 해볼걸 그랬네요 감사합니다. 이쪽이 훨씬 납득이 잘되네요Hyeseong Kim
04/24/2021, 1:12 PMHyeseong Kim
04/24/2021, 1:13 PMimport type { InferrableAny } from '@cometjs/core';
Hyeseong Kim
04/24/2021, 1:14 PMHyeseong Kim
04/24/2021, 1:27 PMHyeseong Kim
04/24/2021, 1:28 PMHyeseong Kim
04/24/2021, 1:28 PMHyeseong Kim
04/24/2021, 1:28 PM