Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Nov 8, 2023
1 parent af160e8 commit f31a21c
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions source/pick-deep.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ type Configuration = {
type NameConfig = PickDeep<Configuration, 'userConfig.name'>;
// type NameConfig = {
// userConfig: {
// name: string;
// name: string;
// }
// };
// Supports optional properties
Expand All @@ -50,7 +51,7 @@ type User = PickDeep<PartialDeep<Configuration>, 'userConfig.name' | 'userConfig
// };
// Supports array
type AddressConfig = PickDeep<Configuration, `userConfig.address.0`>;
type AddressConfig = PickDeep<Configuration, 'userConfig.address.0'>;
// type AddressConfig = {
// userConfig: {
// address: [{
Expand All @@ -61,8 +62,8 @@ type AddressConfig = PickDeep<Configuration, `userConfig.address.0`>;
// }
// Supports recurse into array
type Street = PickDeep<Configuration, `userConfig.address.1.street2`>;
// type AddressConfig = {
type Street = PickDeep<Configuration, 'userConfig.address.1.street2'>;
// type Street = {
// userConfig: {
// address: [
// unknown,
Expand Down

0 comments on commit f31a21c

Please sign in to comment.