filter使用時の型ガードは以下のようにして指定
もし、includeを使う場合は型アサーションを使う
type User = {id: number, name: string, type: string};
users.filter(user is User => {allUser.include(user as User)})
Go to list of users who liked
More than 1 year has passed since last update.
filter使用時の型ガードは以下のようにして指定
もし、includeを使う場合は型アサーションを使う
type User = {id: number, name: string, type: string};
users.filter(user is User => {allUser.include(user as User)})
Register as a new user and use Qiita more conveniently
Go to list of users who liked