What's new
99vfx.com | Premium Web Community Forum

Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

  • If no files are available, please contact ADMIN or reply in the thread. I will update them immediately.

schema

  1. Brilliant

    How to create a type which must contain each key of a schema, but may also contain other keys?

    To create a TypeScript type that requires all keys of a given schema but allows additional keys, you can use an intersection of the schema type and an object type that permits extra properties. Here's how you can do it:Example:type Schema = {requiredKey1: string;requiredKey2: number...
Back
Top