Skip to content

Commit

Permalink
fix: add missing boolean to DeepPartial (#287)
Browse files Browse the repository at this point in the history
* fix: add missing boolean to DeepPartial

* update generated code

Co-authored-by: aikoven <dan.lytkin@gmail.com>
  • Loading branch information
aikoven and aikoven authored Apr 27, 2021
1 parent da5f691 commit ba18380
Show file tree
Hide file tree
Showing 63 changed files with 63 additions and 63 deletions.
2 changes: 1 addition & 1 deletion integration/angular/simple-message.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export const SimpleMessage = {
},
};

type Builtin = Date | Function | Uint8Array | string | number | undefined;
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
export type DeepPartial<T> = T extends Builtin
? T
: T extends Array<infer U>
Expand Down
2 changes: 1 addition & 1 deletion integration/avoid-import-conflicts/simple.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ export const Simple = {
},
};

type Builtin = Date | Function | Uint8Array | string | number | undefined;
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
export type DeepPartial<T> = T extends Builtin
? T
: T extends Array<infer U>
Expand Down
2 changes: 1 addition & 1 deletion integration/avoid-import-conflicts/simple2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ export const Simple = {
},
};

type Builtin = Date | Function | Uint8Array | string | number | undefined;
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
export type DeepPartial<T> = T extends Builtin
? T
: T extends Array<infer U>
Expand Down
2 changes: 1 addition & 1 deletion integration/barrel-imports/bar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export const Bar = {
},
};

type Builtin = Date | Function | Uint8Array | string | number | undefined;
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
type DeepPartial<T> = T extends Builtin
? T
: T extends Array<infer U>
Expand Down
2 changes: 1 addition & 1 deletion integration/barrel-imports/foo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export const Foo = {
},
};

type Builtin = Date | Function | Uint8Array | string | number | undefined;
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
type DeepPartial<T> = T extends Builtin
? T
: T extends Array<infer U>
Expand Down
2 changes: 1 addition & 1 deletion integration/batching-with-context/batching.ts
Original file line number Diff line number Diff line change
Expand Up @@ -740,7 +740,7 @@ export interface DataLoaders {
getDataLoader<T>(identifier: string, constructorFn: () => T): T;
}

type Builtin = Date | Function | Uint8Array | string | number | undefined;
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
export type DeepPartial<T> = T extends Builtin
? T
: T extends Array<infer U>
Expand Down
2 changes: 1 addition & 1 deletion integration/batching/batching.ts
Original file line number Diff line number Diff line change
Expand Up @@ -688,7 +688,7 @@ interface Rpc {
request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>;
}

type Builtin = Date | Function | Uint8Array | string | number | undefined;
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
export type DeepPartial<T> = T extends Builtin
? T
: T extends Array<infer U>
Expand Down
2 changes: 1 addition & 1 deletion integration/bytes-as-base64/message.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ function base64FromBytes(arr: Uint8Array): string {
return btoa(bin.join(''));
}

type Builtin = Date | Function | Uint8Array | string | number | undefined;
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
export type DeepPartial<T> = T extends Builtin
? T
: T extends Array<infer U>
Expand Down
2 changes: 1 addition & 1 deletion integration/bytes-node/point.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ function base64FromBytes(arr: Uint8Array): string {
return btoa(bin.join(''));
}

type Builtin = Date | Function | Uint8Array | string | number | undefined;
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
export type DeepPartial<T> = T extends Builtin
? T
: T extends Array<infer U>
Expand Down
2 changes: 1 addition & 1 deletion integration/const-enum/const-enum.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ export const DividerData = {
},
};

type Builtin = Date | Function | Uint8Array | string | number | undefined;
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
export type DeepPartial<T> = T extends Builtin
? T
: T extends Array<infer U>
Expand Down
2 changes: 1 addition & 1 deletion integration/global-this/global-this.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ export const Error = {
},
};

type Builtin = Date | Function | Uint8Array | string | number | undefined;
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
export type DeepPartial<T> = T extends Builtin
? T
: T extends Array<infer U>
Expand Down
2 changes: 1 addition & 1 deletion integration/grpc-js/google/protobuf/empty.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export const Empty = {
},
};

type Builtin = Date | Function | Uint8Array | string | number | undefined;
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
export type DeepPartial<T> = T extends Builtin
? T
: T extends Array<infer U>
Expand Down
2 changes: 1 addition & 1 deletion integration/grpc-js/google/protobuf/timestamp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ var globalThis: any = (() => {
throw 'Unable to locate global object';
})();

type Builtin = Date | Function | Uint8Array | string | number | undefined;
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
export type DeepPartial<T> = T extends Builtin
? T
: T extends Array<infer U>
Expand Down
2 changes: 1 addition & 1 deletion integration/grpc-js/simple.ts
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ export const TestClient = (makeGenericClientConstructor(TestService, 'simple.Tes
new (address: string, credentials: ChannelCredentials, options?: Partial<ChannelOptions>): TestClient;
};

type Builtin = Date | Function | Uint8Array | string | number | undefined;
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
export type DeepPartial<T> = T extends Builtin
? T
: T extends Array<infer U>
Expand Down
2 changes: 1 addition & 1 deletion integration/grpc-web-go-server/example.ts
Original file line number Diff line number Diff line change
Expand Up @@ -788,7 +788,7 @@ interface Rpc {
request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>;
}

type Builtin = Date | Function | Uint8Array | string | number | undefined;
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
export type DeepPartial<T> = T extends Builtin
? T
: T extends Array<infer U>
Expand Down
2 changes: 1 addition & 1 deletion integration/grpc-web-no-streaming-observable/example.ts
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,7 @@ export class GrpcWebImpl {
}
}

type Builtin = Date | Function | Uint8Array | string | number | undefined;
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
export type DeepPartial<T> = T extends Builtin
? T
: T extends Array<infer U>
Expand Down
2 changes: 1 addition & 1 deletion integration/grpc-web-no-streaming/example.ts
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,7 @@ export class GrpcWebImpl {
}
}

type Builtin = Date | Function | Uint8Array | string | number | undefined;
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
export type DeepPartial<T> = T extends Builtin
? T
: T extends Array<infer U>
Expand Down
2 changes: 1 addition & 1 deletion integration/grpc-web/example.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1010,7 +1010,7 @@ export class GrpcWebImpl {
}
}

type Builtin = Date | Function | Uint8Array | string | number | undefined;
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
export type DeepPartial<T> = T extends Builtin
? T
: T extends Array<infer U>
Expand Down
2 changes: 1 addition & 1 deletion integration/no-proto-package/no-proto-package.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ interface Rpc {
request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>;
}

type Builtin = Date | Function | Uint8Array | string | number | undefined;
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
export type DeepPartial<T> = T extends Builtin
? T
: T extends Array<infer U>
Expand Down
2 changes: 1 addition & 1 deletion integration/oneof-properties/oneof.ts
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ function base64FromBytes(arr: Uint8Array): string {
return btoa(bin.join(''));
}

type Builtin = Date | Function | Uint8Array | string | number | undefined;
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
export type DeepPartial<T> = T extends Builtin
? T
: T extends Array<infer U>
Expand Down
2 changes: 1 addition & 1 deletion integration/oneof-unions/oneof.ts
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@ function base64FromBytes(arr: Uint8Array): string {
return btoa(bin.join(''));
}

type Builtin = Date | Function | Uint8Array | string | number | undefined;
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
export type DeepPartial<T> = T extends Builtin
? T
: T extends Array<infer U>
Expand Down
2 changes: 1 addition & 1 deletion integration/point/point.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ export const Area = {
},
};

type Builtin = Date | Function | Uint8Array | string | number | undefined;
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
export type DeepPartial<T> = T extends Builtin
? T
: T extends Array<infer U>
Expand Down
2 changes: 1 addition & 1 deletion integration/return-observable/observable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ export interface Factory {
Produce(request: ProduceRequest): Observable<ProduceReply>;
}

type Builtin = Date | Function | Uint8Array | string | number | undefined;
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
export type DeepPartial<T> = T extends Builtin
? T
: T extends Array<infer U>
Expand Down
2 changes: 1 addition & 1 deletion integration/simple-deprecated-fields/simple.ts
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ export const Child = {
},
};

type Builtin = Date | Function | Uint8Array | string | number | undefined;
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
export type DeepPartial<T> = T extends Builtin
? T
: T extends Array<infer U>
Expand Down
2 changes: 1 addition & 1 deletion integration/simple-esmodule-interop/simple.ts
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ var globalThis: any = (() => {
throw 'Unable to locate global object';
})();

type Builtin = Date | Function | Uint8Array | string | number | undefined;
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
export type DeepPartial<T> = T extends Builtin
? T
: T extends Array<infer U>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ export const Timestamp = {
},
};

type Builtin = Date | Function | Uint8Array | string | number | undefined;
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
export type DeepPartial<T> = T extends Builtin
? T
: T extends Array<infer U>
Expand Down
2 changes: 1 addition & 1 deletion integration/simple-long-string/google/protobuf/wrappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -621,7 +621,7 @@ function base64FromBytes(arr: Uint8Array): string {
return btoa(bin.join(''));
}

type Builtin = Date | Function | Uint8Array | string | number | undefined;
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
export type DeepPartial<T> = T extends Builtin
? T
: T extends Array<infer U>
Expand Down
2 changes: 1 addition & 1 deletion integration/simple-long-string/simple.ts
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ export const Numbers = {
},
};

type Builtin = Date | Function | Uint8Array | string | number | undefined;
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
export type DeepPartial<T> = T extends Builtin
? T
: T extends Array<infer U>
Expand Down
2 changes: 1 addition & 1 deletion integration/simple-long/google/protobuf/wrappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -621,7 +621,7 @@ function base64FromBytes(arr: Uint8Array): string {
return btoa(bin.join(''));
}

type Builtin = Date | Function | Uint8Array | string | number | undefined | Long;
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined | Long;
export type DeepPartial<T> = T extends Builtin
? T
: T extends Array<infer U>
Expand Down
2 changes: 1 addition & 1 deletion integration/simple-long/simple.ts
Original file line number Diff line number Diff line change
Expand Up @@ -731,7 +731,7 @@ export const Numbers = {
},
};

type Builtin = Date | Function | Uint8Array | string | number | undefined | Long;
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined | Long;
export type DeepPartial<T> = T extends Builtin
? T
: T extends Array<infer U>
Expand Down
2 changes: 1 addition & 1 deletion integration/simple-optionals/google/protobuf/timestamp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ var globalThis: any = (() => {
throw 'Unable to locate global object';
})();

type Builtin = Date | Function | Uint8Array | string | number | undefined;
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
export type DeepPartial<T> = T extends Builtin
? T
: T extends Array<infer U>
Expand Down
2 changes: 1 addition & 1 deletion integration/simple-optionals/google/protobuf/wrappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -621,7 +621,7 @@ function base64FromBytes(arr: Uint8Array): string {
return btoa(bin.join(''));
}

type Builtin = Date | Function | Uint8Array | string | number | undefined;
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
export type DeepPartial<T> = T extends Builtin
? T
: T extends Array<infer U>
Expand Down
2 changes: 1 addition & 1 deletion integration/simple-optionals/import_dir/thing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export const ImportedThing = {
},
};

type Builtin = Date | Function | Uint8Array | string | number | undefined;
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
export type DeepPartial<T> = T extends Builtin
? T
: T extends Array<infer U>
Expand Down
2 changes: 1 addition & 1 deletion integration/simple-optionals/simple.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1922,7 +1922,7 @@ var globalThis: any = (() => {
throw 'Unable to locate global object';
})();

type Builtin = Date | Function | Uint8Array | string | number | undefined;
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
export type DeepPartial<T> = T extends Builtin
? T
: T extends Array<infer U>
Expand Down
2 changes: 1 addition & 1 deletion integration/simple-optionals/thing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export const ImportedThing = {
},
};

type Builtin = Date | Function | Uint8Array | string | number | undefined;
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
export type DeepPartial<T> = T extends Builtin
? T
: T extends Array<infer U>
Expand Down
2 changes: 1 addition & 1 deletion integration/simple-proto2/simple.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ export const Issue56 = {
},
};

type Builtin = Date | Function | Uint8Array | string | number | undefined;
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
export type DeepPartial<T> = T extends Builtin
? T
: T extends Array<infer U>
Expand Down
2 changes: 1 addition & 1 deletion integration/simple-snake/google/protobuf/timestamp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ var globalThis: any = (() => {
throw 'Unable to locate global object';
})();

type Builtin = Date | Function | Uint8Array | string | number | undefined;
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
export type DeepPartial<T> = T extends Builtin
? T
: T extends Array<infer U>
Expand Down
2 changes: 1 addition & 1 deletion integration/simple-snake/google/protobuf/wrappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -621,7 +621,7 @@ function base64FromBytes(arr: Uint8Array): string {
return btoa(bin.join(''));
}

type Builtin = Date | Function | Uint8Array | string | number | undefined;
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
export type DeepPartial<T> = T extends Builtin
? T
: T extends Array<infer U>
Expand Down
2 changes: 1 addition & 1 deletion integration/simple-snake/import_dir/thing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export const ImportedThing = {
},
};

type Builtin = Date | Function | Uint8Array | string | number | undefined;
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
export type DeepPartial<T> = T extends Builtin
? T
: T extends Array<infer U>
Expand Down
2 changes: 1 addition & 1 deletion integration/simple-snake/simple.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1922,7 +1922,7 @@ var globalThis: any = (() => {
throw 'Unable to locate global object';
})();

type Builtin = Date | Function | Uint8Array | string | number | undefined;
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
export type DeepPartial<T> = T extends Builtin
? T
: T extends Array<infer U>
Expand Down
2 changes: 1 addition & 1 deletion integration/simple-string-enums/simple.ts
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ export const Simple = {
},
};

type Builtin = Date | Function | Uint8Array | string | number | undefined;
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
export type DeepPartial<T> = T extends Builtin
? T
: T extends Array<infer U>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ var globalThis: any = (() => {
throw 'Unable to locate global object';
})();

type Builtin = Date | Function | Uint8Array | string | number | undefined;
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
export type DeepPartial<T> = T extends Builtin
? T
: T extends Array<infer U>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -621,7 +621,7 @@ function base64FromBytes(arr: Uint8Array): string {
return btoa(bin.join(''));
}

type Builtin = Date | Function | Uint8Array | string | number | undefined;
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
export type DeepPartial<T> = T extends Builtin
? T
: T extends Array<infer U>
Expand Down
2 changes: 1 addition & 1 deletion integration/simple-unrecognized-enum/import_dir/thing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export const ImportedThing = {
},
};

type Builtin = Date | Function | Uint8Array | string | number | undefined;
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
export type DeepPartial<T> = T extends Builtin
? T
: T extends Array<infer U>
Expand Down
Loading

0 comments on commit ba18380

Please sign in to comment.