File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
tests/compiler-errors/samples/runes-wrong-state-raw-args Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,6 @@ import { test } from '../../test';
33export default test ( {
44 error : {
55 code : 'rune_invalid_arguments_length' ,
6- message : '`$state.raw` must be called with zero or one arguments'
6+ message : '`$state.raw` must be called with at most two arguments'
77 }
88} ) ;
Original file line number Diff line number Diff line change @@ -410,7 +410,9 @@ declare module 'svelte' {
410410 * @deprecated Use [`$effect`](https://svelte.dev/docs/svelte/$effect) instead
411411 * */
412412 export function afterUpdate ( fn : ( ) => void ) : void ;
413-
413+ type Getters < T > = {
414+ [ K in keyof T ] : ( ) => T [ K ] ;
415+ } ;
414416 export interface StateOptions {
415417 onchange ?: ( ) => unknown ;
416418 }
You can’t perform that action at this time.
0 commit comments