Skip to content

Commit 2d6b9d8

Browse files
committed
run prettier
1 parent a1d33ab commit 2d6b9d8

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/wrapper.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export namespace Signal {
4444
#brand() {}
4545

4646
static {
47-
isState = (s) => typeof s === "object" && #brand in s;
47+
isState = (s) => typeof s === 'object' && #brand in s;
4848
}
4949

5050
constructor(initialValue: T, options: Signal.Options<T> = {}) {
@@ -84,7 +84,7 @@ export namespace Signal {
8484
#brand() {}
8585
// eslint-disable-next-line @typescript-eslint/no-explicit-any
8686
static {
87-
isComputed = (c: any) => typeof c === "object" && #brand in c;
87+
isComputed = (c: any) => typeof c === 'object' && #brand in c;
8888
}
8989

9090
// Create a Signal which evaluates to the value returned by the callback.

tests/behaviors/guards.test.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import { describe, expect, it } from "vitest";
2-
import { Signal } from "../../src/wrapper.js";
1+
import {describe, expect, it} from 'vitest';
2+
import {Signal} from '../../src/wrapper.js';
33

4-
describe("Guards", () => {
5-
it("should work with Signals", () => {
4+
describe('Guards', () => {
5+
it('should work with Signals', () => {
66
const state = new Signal.State(1);
77
const computed = new Signal.Computed(() => state.get() * 2);
88
expect(Signal.isState(state)).toBe(true);

0 commit comments

Comments
 (0)