Skip to content
This repository has been archived by the owner on Feb 3, 2022. It is now read-only.

Commit

Permalink
finish upgrade to 2.0
Browse files Browse the repository at this point in the history
- streams are now selectable, etc
- look in changelog.md
  • Loading branch information
MichaelFedora committed Aug 21, 2019
1 parent acb1c95 commit 2b85f71
Show file tree
Hide file tree
Showing 28 changed files with 418 additions and 101 deletions.
3 changes: 1 addition & 2 deletions lib/common/selectable.d.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import { Value, Datum, DatumPartial, StreamPartial, Stream } from '../types';
import { Value, Datum, DatumPartial, StreamPartial } from '../types';
export interface SelectableDatum<T = any> extends DatumPartial<T> {
_sel<U extends string | number>(attribute: Value<U>): U extends keyof T ? SelectableDatum<T[U]> : SelectableDatum<any>;
}
export interface SelectableStream<T = any> extends StreamPartial<T> {
_sel<U extends string | number>(attribute: Value<U>): U extends keyof T ? SelectableStream<T[U]> : SelectableStream<any>;
}
export declare function makeSelector<T = any>(partial: SelectableDatum<T>): Datum<T>;
export declare function makeStreamSelector<T = any>(partial: SelectableStream<T>): Stream<T>;
12 changes: 4 additions & 8 deletions lib/common/selectable.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/common/selectable.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

40 changes: 26 additions & 14 deletions lib/common/static-datum.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/common/static-datum.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 2b85f71

Please sign in to comment.