This repository has been archived by the owner on Jul 20, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a8de0bb
commit 36191c0
Showing
5 changed files
with
43 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import "jasmine" | ||
import * as labelPart from "./label-part" | ||
import * as shared from "./shared.tests" | ||
|
||
describe(`label part`, () => { | ||
shared.testLabelPart(labelPart.schema, instance => instance, `instance`) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import * as jsonschema from "jsonschema" | ||
import * as identifier from "./identifier" | ||
|
||
export const schema: jsonschema.Schema = { | ||
description: `A chain of column identifiers which can be followed to find a value which is to be used as part of a label.`, | ||
type: `array`, | ||
items: identifier.schema | ||
} | ||
|
||
/** | ||
* A chain of column identifiers which can be followed to find a value which is to be used as part of a label. | ||
*/ | ||
export type Type = ReadonlyArray<identifier.Type> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters