Skip to content

Commit

Permalink
exports & comments
Browse files Browse the repository at this point in the history
  • Loading branch information
jtbandes committed Sep 13, 2023
1 parent 5d89e9c commit 811f45e
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
6 changes: 4 additions & 2 deletions typescript/support/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
export * from "./decompressHandlers";
export * from "./parseChannel";
export * from "./parseFlatbufferSchema";
export * from "./parseJsonSchema";
export * from "./parseProtobufSchema";
export * from "./protobufDefinitionsToDatatypes";
export * from "./protobufDescriptors";
export * from "./parseChannel";
export * from "./decompressHandlers";
6 changes: 6 additions & 0 deletions typescript/support/src/parseChannel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,13 @@ function parsedDefinitionsToDatatypes(
return datatypes;
}

/**
* Options to configure the behavior of {@link parseChannel}.
*/
export type ParseChannelOptions = {
/**
* Options to configure the behavior of {@link parseProtobufSchema}.
*/
protobuf?: ParseProtobufSchemaOptions;
};

Expand Down
3 changes: 3 additions & 0 deletions typescript/support/src/parseProtobufSchema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ import { FileDescriptorSet } from "@foxglove/protobufjs/ext/descriptor";
import { protobufDefinitionsToDatatypes, stripLeadingDot } from "./protobufDefinitionsToDatatypes";
import { MessageDefinitionMap } from "./types";

/**
* Options to configure the behavior of {@link parseProtobufSchema}.
*/
export type ParseProtobufSchemaOptions = {
/**
* A function that will be called with the root type after parsing the FileDescriptorSet. Used by
Expand Down

0 comments on commit 811f45e

Please sign in to comment.