Comments (3)
@grigorischristainas that change makes sense to me.
from type-fest.
@sindresorhus, @bvandercar-vt, do you think the implementation should change for arrays in general, or just for arrays of objects?
Given the following example, based on the current implementation:
import type {Schema} from 'type-fest';
interface Users {
names: Array<string>;
}
type UserMask = Schema<Users, 'mask' | 'hide' | 'show'>;
const userMaskSettings: UserMask = {
names: 'mask'
}
should userMaskSettings
be changed as follows ?
const userMaskSettings: UserMask = {
names: ['mask']
}
from type-fest.
from type-fest.
Related Issues (20)
- Exact not function correctly with Dates since last commit HOT 8
- Type `{}` is not assignable to type `PartialDeep<T>` HOT 1
- Expose Max Recursion Depth of Paths HOT 2
- Issues with `Paths` type HOT 4
- 4.23.0 introduced a breaking change in `Paths` type HOT 6
- Feat: Include types to remove null/undefined/optionals from a tuple
- `ArraySlice` resolves to `never` when passing `number` HOT 2
- `EmptyArray` type HOT 2
- Suggestion to include documetation on `Awaited` Type in README
- `OmitDeep` with multiple properties to omit HOT 1
- MergeDeep takes type of property of source instead of using the destination type in case of undefined value HOT 1
- Feature request: `KeysMatching` (filtered `keyof`) HOT 4
- Line-wrap all documentation? HOT 2
- Non-Empty String Type HOT 1
- IsAny not working with "any" as generic type argument under different constraint
- `Exact` no longer works with recursive types + unions
- Is there a type to merge value of a `Record` where each value is an object
- `Arrayable` is unusable
- Feature request: `OptionalToExplicit` (transform optional properties to required properties that may be undefined)
- Performance regression in Get<> HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from type-fest.