Skip to content

Commit

Permalink
fix(examples): update type imports (TS4.5)
Browse files Browse the repository at this point in the history
  • Loading branch information
postspectacular committed Nov 20, 2021
1 parent 66140ba commit 8ff692b
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 11 deletions.
6 changes: 3 additions & 3 deletions examples/adaptive-threshold/src/events.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ import { stream } from "@thi.ng/rstream/stream";
import { trace } from "@thi.ng/rstream/trace";
import type { Transducer } from "@thi.ng/transducers";
import {
Event,
EventType,
EventTypeMap,
type Event,
type EventType,
type EventTypeMap,
SET_IMAGE,
SET_KERNEL_OFFSET,
SET_KERNEL_WIDTH,
Expand Down
4 changes: 2 additions & 2 deletions examples/adaptive-threshold/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import { sidechainPartitionRAF } from "@thi.ng/rstream/sidechain-partition";
import { map } from "@thi.ng/transducers/map";
import { updateDOM } from "@thi.ng/transducers-hdom";
import {
AppState,
Event,
type AppState,
type Event,
SET_IMAGE,
SET_KERNEL_OFFSET,
SET_KERNEL_WIDTH,
Expand Down
2 changes: 1 addition & 1 deletion examples/cellular-automata/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { dropdown, DropDownOption } from "@thi.ng/hdom-components/dropdown";
import { dropdown, type DropDownOption } from "@thi.ng/hdom-components/dropdown";
import { start } from "@thi.ng/hdom/start";
import { bits } from "@thi.ng/transducers-binary/bits";
import { comp } from "@thi.ng/transducers/comp";
Expand Down
4 changes: 2 additions & 2 deletions examples/color-themes/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { ColorRangePreset, ColorThemePart } from "@thi.ng/color";
import { css } from "@thi.ng/color/css/css";
import { lch, LCH } from "@thi.ng/color/lch/lch";
import { lch, type LCH } from "@thi.ng/color/lch/lch";
import { swatchesH } from "@thi.ng/color/swatches";
import { div } from "@thi.ng/hiccup-html/blocks";
import {
Expand All @@ -20,7 +20,7 @@ import { $inputCheckbox, $inputNum, $inputTrigger } from "@thi.ng/rdom/event";
import { $list } from "@thi.ng/rdom/list";
import { $replace } from "@thi.ng/rdom/replace";
import { reactive } from "@thi.ng/rstream/stream";
import { MainOutputs, RANGE_IDs } from "./api";
import { type MainOutputs, RANGE_IDs } from "./api";
import {
debouncedParts,
downloadTrigger,
Expand Down
2 changes: 1 addition & 1 deletion examples/color-themes/src/serialize.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import type { IObjectOf } from "@thi.ng/api";
import type { ColorRangePreset, ColorThemePart } from "@thi.ng/color";
import { lch } from "@thi.ng/color/lch/lch";
import type { ISubscribable, ISubscriber } from "@thi.ng/rstream";
import { MainOutputs, NUM_STATE_TOKENS } from "./api";
import { type MainOutputs, NUM_STATE_TOKENS } from "./api";

export const initFromHash = (
parts: IObjectOf<ISubscriber<ColorThemePart>>,
Expand Down
4 changes: 2 additions & 2 deletions examples/color-themes/src/state.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ import type {
} from "@thi.ng/color";
import { colorsFromTheme } from "@thi.ng/color/color-range";
import { distCIEDE2000 } from "@thi.ng/color/distance";
import { LCH, lch } from "@thi.ng/color/lch/lch";
import { type LCH, lch } from "@thi.ng/color/lch/lch";
import { proximity, sort } from "@thi.ng/color/sort";
import { SYSTEM } from "@thi.ng/random/system";
import { XsAdd } from "@thi.ng/random/xsadd";
import { debounce } from "@thi.ng/rstream/debounce";
import { reactive, stream, Stream } from "@thi.ng/rstream/stream";
import { sync } from "@thi.ng/rstream/sync";
import { map } from "@thi.ng/transducers/map";
import { MainInputs, MainOutputs, RANGE_IDs } from "./api";
import { type MainInputs, type MainOutputs, RANGE_IDs } from "./api";
import { downloadACT } from "./palette";
import { attachSerializer, initFromHash } from "./serialize";

Expand Down

0 comments on commit 8ff692b

Please sign in to comment.