Skip to content

Commit

Permalink
Remove WithChildren from the SVGStopAttributes.
Browse files Browse the repository at this point in the history
Fix returning type of the `effect` to `void`.
  • Loading branch information
Kapelianovych committed May 26, 2024
1 parent 5066d3b commit 3e68463
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion core/context.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export type Context = {
callback: Effect,
dependencies?: readonly Getter<unknown>[],
schedule?: (callback: VoidFunction) => void,
): VoidFunction;
): void;
};

export function context(parent?: Context): Context;
Expand Down
4 changes: 2 additions & 2 deletions core/enhancers.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,13 @@ export function effect(
callback: Effect,
dependencies?: readonly Getter<unknown>[],
schedule?: (callback: VoidFunction) => void,
): VoidFunction;
): void;
export function effect(
context: Context,
callback: Effect,
dependencies?: readonly Getter<unknown>[],
schedule?: (callback: VoidFunction) => void,
): VoidFunction;
): void;

export type Provider<A> = readonly [
Component<WithChildren<{ readonly value: A }>>,
Expand Down
3 changes: 1 addition & 2 deletions web/jsx.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1355,8 +1355,7 @@ declare module "moru" {
}

interface SVGStopAttributes
extends WithChildren,
SVGCommonAttributes<SVGStopElement>,
extends SVGCommonAttributes<SVGStopElement>,
IntrinsicProperties<SVGStopElement>,
EventAttributes<SVGStopElement> {
readonly offset?: AttributeValue<SVGLengthPercentage>;
Expand Down

0 comments on commit 3e68463

Please sign in to comment.