const state = new ImperativeState(() => ({
      foo: undefined as number | undefined,
      bar: [] as string[],
      baz: {
        flag: false,