@interopio/gateway-server
Version:
[](https://www.npmjs.com/package/@interopio/gateway-server)
21 lines (17 loc) • 540 B
TypeScript
/**
* Structured representation of a path parsed via {@link parsePath} into a sequence of
* {@link Separator} and {@link PathSegment} elements.
*/
export type PathContainer = {
readonly value: string;
readonly elements: readonly PathContainerElement[];
}
export type PathContainerElement = Separator | PathSegment
export type PathSegment = {
readonly value: string,
readonly valueToMatch: string,
readonly parameters: ReadonlyMap<string, readonly string[]>
}
export type Separator = {
readonly value: string
}