ValueOptions -> StateOptions

state-onchange
Rich Harris 5 months ago
parent 9f34f7cbf7
commit af70cef5a0

@ -352,6 +352,6 @@ export type MountOptions<Props extends Record<string, any> = Record<string, any>
props: Props;
});
export { ValueOptions as StateOptions } from './internal/client/types.js';
export { StateOptions } from './internal/client/types.js';
export * from './index-client.js';

@ -1,4 +1,4 @@
/** @import { Source, ValueOptions } from '#client' */
/** @import { Source } from '#client' */
import { DEV } from 'esm-env';
import { UNINITIALIZED } from '../../constants.js';
import { tracing_mode_flag } from '../flags/index.js';

@ -1,4 +1,4 @@
/** @import { Derived, Effect, Reaction, Source, Value, ValueOptions } from '#client' */
/** @import { Derived, Effect, Reaction, Source, Value } from '#client' */
import { DEV } from 'esm-env';
import {
active_reaction,

@ -7,7 +7,7 @@ export interface Signal {
wv: number;
}
export interface ValueOptions {
export interface StateOptions {
onchange?: () => unknown;
}

@ -1,6 +1,6 @@
import type { Store } from '#shared';
import { STATE_SYMBOL } from './constants.js';
import type { Effect, Source, Value, Reaction, ValueOptions } from './reactivity/types.js';
import type { Effect, Source, Value, Reaction } from './reactivity/types.js';
type EventCallback = (event: Event) => boolean;
export type EventCallbackMap = Record<string, EventCallback | EventCallback[]>;

Loading…
Cancel
Save