Skip to content

Commit

Permalink
fix: allow makeMetadata with no params
Browse files Browse the repository at this point in the history
  • Loading branch information
chakhsu committed Jan 17, 2024
1 parent 32d0ebe commit 6b37fa6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/loader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ export class ProtoLoader {
}
}

makeMetadata(initialValues: Record<string, any>) {
makeMetadata(initialValues?: Record<string, any>) {
const meta = new grpc.Metadata()
if (typeof initialValues === 'object') {
Object.entries(initialValues).forEach(([key, value]: [string, any]) => {
Expand Down

0 comments on commit 6b37fa6

Please sign in to comment.