Skip to content
This repository was archived by the owner on Jul 23, 2021. It is now read-only.

SortedList type #183

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions pages/lib/TypeKind.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,14 @@ var TypeKind = {

This: 10,
Undefined: 11,
Union: 12,
Intersection: 13,
Tuple: 14,
Indexed: 15,
Operator: 16,
Null: 12,
Union: 13,
Intersection: 14,
Tuple: 15,
Indexed: 16,
Operator: 17,

Unknown: 17,
Unknown: 18,
};

module.exports = TypeKind;
6 changes: 5 additions & 1 deletion pages/lib/genTypeDefData.js
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ function DocVisitor(source) {
switch (node.kind) {
case ts.SyntaxKind.NeverKeyword:
return {
k: TypeKind.NeverKeyword,
k: TypeKind.Never,
};
case ts.SyntaxKind.AnyKeyword:
return {
Expand All @@ -283,6 +283,10 @@ function DocVisitor(source) {
return {
k: TypeKind.Unknown,
};
case ts.SyntaxKind.NullKeyword:
return {
k: TypeKind.Null,
};
case ts.SyntaxKind.ThisType:
return {
k: TypeKind.This,
Expand Down
2 changes: 2 additions & 0 deletions pages/src/docs/src/Defs.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,8 @@ var TypeDef = React.createClass({
return this.wrap('primitive', 'any');
case TypeKind.This:
return this.wrap('primitive', 'this');
case TypeKind.Null:
return this.wrap('primitive', 'null');
case TypeKind.Undefined:
return this.wrap('primitive', 'undefined');
case TypeKind.Boolean:
Expand Down
4 changes: 4 additions & 0 deletions src/Immutable.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import { Seq } from './Seq';
import { OrderedMap } from './OrderedMap';
import { List } from './List';
import { SortedList, isSortedList } from './SortedList';
import { Map } from './Map';
import { Stack } from './Stack';
import { OrderedSet } from './OrderedSet';
Expand Down Expand Up @@ -64,6 +65,7 @@ export default {
Map: Map,
OrderedMap: OrderedMap,
List: List,
SortedList: SortedList,
Stack: Stack,
Set: Set,
OrderedSet: OrderedSet,
Expand All @@ -85,6 +87,7 @@ export default {
isValueObject: isValueObject,
isSeq: isSeq,
isList: isList,
isSortedList: isSortedList,
isMap: isMap,
isOrderedMap: isOrderedMap,
isStack: isStack,
Expand Down Expand Up @@ -119,6 +122,7 @@ export {
Map,
OrderedMap,
List,
SortedList,
Stack,
Set,
OrderedSet,
Expand Down
Loading