IssueRaiser

949 - AnyOf

<!-- Notes: 🎉 Congrats on solving the challenge and we are happy to see you'd like to share your solutions! However, due to the increasing number of users, the issue pool would be filled by answers very quickly. Before you submit your solutions, please kindly search for similar solutions that may already be posted. You can "thumb up" on them or leave your comments on that issue. If you think you have a different solution, do not hesitate to create the issue and share it with others. Sharing some ideas or thoughts about how to solve this problem is greatly welcome! Thanks! --> ```ts type AnyOf<T extends any[]> = T[number] extends 0 | '' | false | [] | {[key: string]: never} ? false : true; ```

Posted by kynefuk on Feb 20, 2021, 7:10 AM

Tags

Related issues

Raise real-world problems, find people facing the same issue, and discuss solutions.3,000 issues0 comments

github (Other)

949 - AnyOf

kynefukFeb 20, 2021, 7:10 AM

<!-- Notes: 🎉 Congrats on solving the challenge and we are happy to see you'd like to share your solutions! However, due to the increasing number of users, the issue pool would be filled by answers very quickly. Before you submit your solutions, please kindly search for similar solutions that may already be posted. You can "thumb up" on them or leave your comments on that issue. If you think you have a different solution, do not hesitate to create the issue and share it with others. Sharing some ideas or thoughts about how to solve this problem is greatly welcome! Thanks! --> ```ts type AnyOf<T extends any[]> = T[number] extends 0 | '' | false | [] | {[key: string]: never} ? false : true; ```

Comments (0)

No comments yet. Start the discussion.

Comment on this issue