(filePath: string, includeDirs: string[])
| 102 | } |
| 103 | |
| 104 | const loadMethodsFromFilePath = async (filePath: string, includeDirs: string[]): Promise<MethodDefs[]> => { |
| 105 | const definition = await protoLoader.load(filePath, { |
| 106 | ...grpcOptions, |
| 107 | includeDirs, |
| 108 | }); |
| 109 | return getMethodsFromPackageDefinition(definition); |
| 110 | }; |
| 111 | const loadMethods = async (protoFileId: string): Promise<GrpcMethodInfo[]> => { |
| 112 | const protoFile = await services.protoFile.getById(protoFileId); |
| 113 | invariant(protoFile, `Proto file ${protoFileId} not found`); |
no test coverage detected