Skip to content

Commit

Permalink
run prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
fcrozatier committed Jan 17, 2025
1 parent a1d33ab commit 2d6b9d8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/wrapper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export namespace Signal {
#brand() {}

static {
isState = (s) => typeof s === "object" && #brand in s;
isState = (s) => typeof s === 'object' && #brand in s;
}

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

// Create a Signal which evaluates to the value returned by the callback.
Expand Down
8 changes: 4 additions & 4 deletions tests/behaviors/guards.test.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { describe, expect, it } from "vitest";
import { Signal } from "../../src/wrapper.js";
import {describe, expect, it} from 'vitest';
import {Signal} from '../../src/wrapper.js';

describe("Guards", () => {
it("should work with Signals", () => {
describe('Guards', () => {
it('should work with Signals', () => {
const state = new Signal.State(1);
const computed = new Signal.Computed(() => state.get() * 2);
expect(Signal.isState(state)).toBe(true);
Expand Down

0 comments on commit 2d6b9d8

Please sign in to comment.