Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Get type #153

Merged
merged 30 commits into from Feb 12, 2021
Merged
Changes from 1 commit
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
1f64736
Deep property get
mmkal Nov 25, 2020
0109858
move split to ts41
mmkal Nov 26, 2020
81e69f4
Move split to utilities file
mmkal Nov 26, 2020
59e1548
Improve docs/naming
mmkal Nov 26, 2020
9b76341
Return undefined for bad paths, not never
mmkal Nov 26, 2020
49c60e5
use expect-type for clearer assertions
mmkal Nov 26, 2020
859456a
Update get.ts
sindresorhus Nov 27, 2020
874ced0
Update get.d.ts
sindresorhus Nov 27, 2020
54e97b5
Update get.d.ts
sindresorhus Nov 27, 2020
87974e1
Update get.d.ts
sindresorhus Nov 27, 2020
8cae0d5
Add some tests; return unknown for bad paths
mmkal Nov 28, 2020
74571d1
Rename Integers -> StringDigit and add JSDoc
mmkal Nov 29, 2020
483116f
Handle optional props
mmkal Nov 29, 2020
0804a75
Tab indentation
mmkal Nov 29, 2020
d9a64a9
Use words as type names
mmkal Nov 30, 2020
8ee134f
Make api response test more realistic
mmkal Nov 30, 2020
d971417
Update get.d.ts
sindresorhus Dec 1, 2020
8476a89
Fix @see tag
mmkal Dec 3, 2020
12a8978
Merge branch 'get' of https://github.com/mmkal/type-fest into get
mmkal Dec 3, 2020
498cea8
Merge remote-tracking branch 'upstream/master' into get
mmkal Dec 3, 2020
6078ae9
ObjectType -> BaseType
mmkal Dec 3, 2020
54eb532
Improve ConsistsOnlyOf docs
mmkal Dec 3, 2020
84529f7
Add to PropertyOf docs
mmkal Dec 3, 2020
fff3b74
Don't use ArrayLike
mmkal Dec 3, 2020
3f0f49f
Update get.ts
sindresorhus Dec 20, 2020
cbde1ca
Update get.d.ts
sindresorhus Dec 20, 2020
d621f86
Merge remote-tracking branch 'upstream/master' into get
mmkal Jan 2, 2021
35ecd37
Bump expect-type
mmkal Jan 2, 2021
6560c29
Update @see comment
mmkal Jan 2, 2021
4e3d34a
See no evil
mmkal Jan 3, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion ts41/get.d.ts
Expand Up @@ -2,7 +2,7 @@ import {Split} from './utilities';
import {StringDigit} from '../source/utilities';

/**
Like @see {@link Get} but receives an array of strings as a path parameter.
Like @see Get but receives an array of strings as a path parameter.
mmkal marked this conversation as resolved.
Show resolved Hide resolved
sindresorhus marked this conversation as resolved.
Show resolved Hide resolved
sindresorhus marked this conversation as resolved.
Show resolved Hide resolved
*/
type GetWithPath<BaseType, Keys extends readonly string[]> =
Keys extends []
Expand Down