Skip to content

Latest commit

 

History

History
16 lines (13 loc) · 567 Bytes

File metadata and controls

16 lines (13 loc) · 567 Bytes

Recognize @satisfies in Closure-style type casts (#14262 by @fisker)

// Input
const a = /** @satisfies {Record<string, string>} */ ({hello: 1337});
const b = /** @type {Record<string, string>} */ ({hello: 1337});

// Prettier stable
const a = /** @satisfies {Record<string, string>} */ { hello: 1337 };
const b = /** @type {Record<string, string>} */ ({ hello: 1337 });

// Prettier main
const a = /** @satisfies {Record<string, string>} */ ({hello: 1337});
const b = /** @type {Record<string, string>} */ ({hello: 1337});