@grpc/proto-loader
Advanced tools
Comparing version 0.6.0-pre16 to 0.6.0-pre17
@@ -541,3 +541,3 @@ #!/usr/bin/env node | ||
const grpcImportPath = options.grpcLib.startsWith('.') ? getPathToRoot(serviceType) + options.grpcLib : options.grpcLib; | ||
formatter.writeLine(`import * as grpc from '${grpcImportPath}'`); | ||
formatter.writeLine(`import type * as grpc from '${grpcImportPath}'`); | ||
const dependencies = new Set(); | ||
@@ -593,3 +593,3 @@ for (const method of serviceType.methodsArray) { | ||
function generateRootFile(formatter, root, options) { | ||
formatter.writeLine(`import * as grpc from '${options.grpcLib}';`); | ||
formatter.writeLine(`import type * as grpc from '${options.grpcLib}';`); | ||
formatter.writeLine("import type { ServiceDefinition, EnumTypeDefinition, MessageTypeDefinition } from '@grpc/proto-loader';"); | ||
@@ -599,3 +599,3 @@ formatter.writeLine(''); | ||
formatter.writeLine(''); | ||
formatter.writeLine('type SubtypeConstructor<Constructor, Subtype> = {'); | ||
formatter.writeLine('type SubtypeConstructor<Constructor extends new (...args: any) => any, Subtype> = {'); | ||
formatter.writeLine(' new(...args: ConstructorParameters<Constructor>): Subtype;'); | ||
@@ -602,0 +602,0 @@ formatter.writeLine('};'); |
{ | ||
"name": "@grpc/proto-loader", | ||
"version": "0.6.0-pre16", | ||
"version": "0.6.0-pre17", | ||
"author": "Google Inc.", | ||
@@ -5,0 +5,0 @@ "contributors": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
65978