chore: update prettier configuration for print width (#519)
* feat: update prettier configuration for print width * chore: apply code formatting to entire repository * fix: remove build files * fix: format issue --------- Co-authored-by: Meier Lukas <meierschlumpf@gmail.com>
This commit is contained in:
@@ -6,5 +6,4 @@ type Entries<T> = {
|
||||
[K in keyof T]: [K, T[K]];
|
||||
}[keyof T][];
|
||||
|
||||
export const objectEntries = <T extends object>(obj: T) =>
|
||||
Object.entries(obj) as Entries<T>;
|
||||
export const objectEntries = <T extends object>(obj: T) => Object.entries(obj) as Entries<T>;
|
||||
|
||||
@@ -2,12 +2,7 @@ import { describe, expect, it } from "vitest";
|
||||
|
||||
import { objectEntries, objectKeys } from "../object";
|
||||
|
||||
const testObjects = [
|
||||
{ a: 1, c: 3, b: 2 },
|
||||
{ a: 1, b: 2 },
|
||||
{ a: 1 },
|
||||
{},
|
||||
] as const;
|
||||
const testObjects = [{ a: 1, c: 3, b: 2 }, { a: 1, b: 2 }, { a: 1 }, {}] as const;
|
||||
|
||||
describe("objectKeys should return all keys of an object", () => {
|
||||
testObjects.forEach((obj) => {
|
||||
|
||||
Reference in New Issue
Block a user