This repository has been archived by the owner on Feb 3, 2022. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- streams are now selectable, etc - look in changelog.md
- Loading branch information
1 parent
acb1c95
commit 2b85f71
Showing
28 changed files
with
418 additions
and
101 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
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>; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.