Skip to content

Commit 3a5bddd

Browse files
fix(css): regenerate types.d.ts and drop a removed ability flag from a test
The declarations were spliced by hand against a stale generator; this is what tooling v1.28.1 emits. One unit test still passed `cssColorHexAlpha`, which the schema no longer has — it asks for an old target instead.
1 parent 07be5e8 commit 3a5bddd

2 files changed

Lines changed: 5 additions & 12 deletions

File tree

‎test/CssSyntax.unittest.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2803,7 +2803,7 @@ describe("CssSyntax minify — the value transforms' rejection paths", () => {
28032803
// All the way to the shortest name, as any other opaque color is.
28042804
expect(value("#ff0000ff")).toBe("red");
28052805
// Even where the target reads no hex alpha, this form needing none.
2806-
expect(value("#ffffffff", { cssColorHexAlpha: false })).toBe("#fff");
2806+
expect(value("#ffffffff", { browsers: ["chrome 50"] })).toBe("#fff");
28072807
// A real alpha still collapses only as far as it may.
28082808
expect(value("#11223344")).toBe("#1234");
28092809
expect(value("#ffffffaa")).toBe("#fffa");

‎types.d.ts‎

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9852,7 +9852,7 @@ type Head<T extends ReadonlyArray<any>> = T extends readonly [infer H, ...any[]]
98529852
? H
98539853
: T extends readonly []
98549854
? any
9855-
: T extends (infer E)[]
9855+
: T extends readonly (infer E)[]
98569856
? E
98579857
: never;
98589858

@@ -11153,9 +11153,7 @@ declare class InitFragment<GenerateContext> {
1115311153
/**
1115411154
* Restores this instance from the provided deserializer context.
1115511155
*/
11156-
deserialize(
11157-
context: ObjectDeserializerContextObjectMiddlewareObject_2
11158-
): void;
11156+
deserialize(context: ObjectDeserializerContextObjectMiddlewareObject_2): void;
1115911157

1116011158
/**
1116111159
* Adds the provided source to the init fragment.
@@ -23128,10 +23126,7 @@ declare interface ReaddirTypes {
2312823126
withFileTypes: true;
2312923127
recursive?: boolean;
2313023128
},
23131-
callback: (
23132-
err: null | NodeJS.ErrnoException,
23133-
files?: DirentTypes<string>[]
23134-
) => void
23129+
callback: (err: null | NodeJS.ErrnoException, files?: DirentTypes[]) => void
2313523130
): void;
2313623131
(
2313723132
path: PathLikeTypes,
@@ -25962,9 +25957,7 @@ declare abstract class SerializerMiddleware<
2596225957
context: Context
2596325958
): DeserializedType | Promise<DeserializedType>;
2596425959
}
25965-
type ServerLazyCompilationBackend =
25966-
| ServerImportHttp
25967-
| ServerImportHttps;
25960+
type ServerLazyCompilationBackend = ServerImportHttp | ServerImportHttps;
2596825961
declare interface SetIterator<T> extends IteratorObject<T, undefined> {
2596925962
[Symbol.iterator](): SetIterator<T>;
2597025963
[Symbol.dispose](): void;

0 commit comments

Comments
 (0)