pax_global_header00006660000000000000000000000064151066050450014514gustar00rootroot0000000000000052 comment=ecfa6195b5712cf580b2ad253dd4f8a4da831906 frenic-csstype-47a4c33/000077500000000000000000000000001510660504500150045ustar00rootroot00000000000000frenic-csstype-47a4c33/.flowconfig000066400000000000000000000004121510660504500171370ustar00rootroot00000000000000[ignore] .*/node_modules/.* .*/__fixtures__/.* [include] [libs] [lints] untyped-import=warn [options] [strict] sketchy-null sketchy-number untyped-type-import unclear-type unsafe-getters-setters nonstrict-import unnecessary-optional-chain unnecessary-invariant frenic-csstype-47a4c33/.gitattributes000066400000000000000000000000731510660504500176770ustar00rootroot00000000000000* text=auto index.d.ts merge=ours index.js.flow merge=ours frenic-csstype-47a4c33/.github/000077500000000000000000000000001510660504500163445ustar00rootroot00000000000000frenic-csstype-47a4c33/.github/workflows/000077500000000000000000000000001510660504500204015ustar00rootroot00000000000000frenic-csstype-47a4c33/.github/workflows/checks.yaml000066400000000000000000000025641510660504500225340ustar00rootroot00000000000000name: 'Checks' on: push: # Only run if a generated file was modified paths: - index.d.ts - index.js.flow jobs: do_not_modify_generated_files: name: 'Check which files were modifed' runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 with: fetch-depth: 0 - name: Check if non-generated files were modified id: other_files uses: tj-actions/changed-files@46.0.1 with: files_ignore: | index.d.ts index.js.flow - uses: LouisBrunner/checks-action@v1.1.1 with: token: ${{ secrets.GITHUB_TOKEN }} name: 'Never modify index.d.ts and index.js.flow directly' # Set status to 'success' if other files were changed, # or 'failure' if only index.d.ts or index.js.flow were changed conclusion: ${{ steps.other_files.outputs.any_changed == 'true' && 'success' || 'failure' }} output: | {"summary":"We detected that you only modified `index.d.ts` and/or `index.js.flow`. **Never modify `index.d.ts` and `index.js.flow` directly. They are generated automatically and committed so that we can easily follow any change it results in.** You probably want to update [MDN's CSS data](https://github.com/mdn/data) or [add a patch](https://github.com/frenic/csstype/blob/master/src/data/patches.ts)."} frenic-csstype-47a4c33/.gitignore000066400000000000000000000000161510660504500167710ustar00rootroot00000000000000node_modules/ frenic-csstype-47a4c33/.prettierignore000066400000000000000000000001131510660504500200420ustar00rootroot00000000000000index.js.flow index.d.ts package.json package-lock.json src/data/urls.json frenic-csstype-47a4c33/.prettierrc000066400000000000000000000001431510660504500171660ustar00rootroot00000000000000{ "arrowParens": "avoid", "printWidth": 120, "singleQuote": true, "trailingComma": "all" } frenic-csstype-47a4c33/.release-it.json000066400000000000000000000004151510660504500200070ustar00rootroot00000000000000{ "$schema": "https://unpkg.com/release-it@19/schema/release-it.json", "git": { "commitMessage": "v${version}" }, "github": { "release": false }, "hooks": { "before:init": ["npx tsc", "npm run test:src"], "after:bump": "npm run build" } } frenic-csstype-47a4c33/.travis.yml000066400000000000000000000000511510660504500171110ustar00rootroot00000000000000language: node_js node_js: - 'stable' frenic-csstype-47a4c33/.vscode/000077500000000000000000000000001510660504500163455ustar00rootroot00000000000000frenic-csstype-47a4c33/.vscode/launch.json000066400000000000000000000006021510660504500205100ustar00rootroot00000000000000{ "configurations": [ { "type": "node", "name": "vscode-jest-tests", "request": "launch", "console": "integratedTerminal", "internalConsoleOptions": "neverOpen", "disableOptimisticBPs": true, "cwd": "${workspaceFolder}", "runtimeExecutable": "npm", "args": ["run", "test", "--", "--runInBand", "--watchAll=false"] } ] } frenic-csstype-47a4c33/.vscode/settings.json000066400000000000000000000005401510660504500210770ustar00rootroot00000000000000{ "editor.codeActionsOnSave": {"source.fixAll.eslint": "explicit"}, "editor.formatOnSave": true, "eslint.alwaysShowStatus": true, "eslint.validate": ["javascript", "javascriptreact", "html", "typescript", "typescriptreact"], "files.eol": "\n", "typescript.tsdk": "node_modules/typescript/lib", "jest.jestCommandLine": "npm run test --" } frenic-csstype-47a4c33/LICENSE000066400000000000000000000020461510660504500160130ustar00rootroot00000000000000Copyright (c) 2017-2018 Fredrik Nicol Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. frenic-csstype-47a4c33/README.md000066400000000000000000000252071510660504500162710ustar00rootroot00000000000000# CSSType [![npm](https://img.shields.io/npm/v/csstype.svg)](https://www.npmjs.com/package/csstype) TypeScript and Flow definitions for CSS, generated by [data from MDN](https://github.com/mdn/data). It provides autocompletion and type checking for CSS properties and values. **TypeScript** ```ts import type * as CSS from 'csstype'; const style: CSS.Properties = { colour: 'white', // Type error on property textAlign: 'middle', // Type error on value }; ``` **Flow** ```js // @flow strict import * as CSS from 'csstype'; const style: CSS.Properties<> = { colour: 'white', // Type error on property textAlign: 'middle', // Type error on value }; ``` _Further examples below will be in TypeScript!_ ## Getting started ```sh $ npm install csstype ``` ## Table of content - [Style types](#style-types) - [At-rule types](#at-rule-types) - [Pseudo types](#pseudo-types) - [Generics](#generics) - [Usage](#usage) - [What should I do when I get type errors?](#what-should-i-do-when-i-get-type-errors) - [Version 3.0](#version-30) - [Contributing](#contributing) ## Style types Properties are categorized in different uses and in several technical variations to provide typings that suits as many as possible. | | Default | `Hyphen` | `Fallback` | `HyphenFallback` | | -------------- | -------------------- | -------------------------- | ---------------------------- | ---------------------------------- | | **All** | `Properties` | `PropertiesHyphen` | `PropertiesFallback` | `PropertiesHyphenFallback` | | **`Standard`** | `StandardProperties` | `StandardPropertiesHyphen` | `StandardPropertiesFallback` | `StandardPropertiesHyphenFallback` | | **`Vendor`** | `VendorProperties` | `VendorPropertiesHyphen` | `VendorPropertiesFallback` | `VendorPropertiesHyphenFallback` | | **`Obsolete`** | `ObsoleteProperties` | `ObsoletePropertiesHyphen` | `ObsoletePropertiesFallback` | `ObsoletePropertiesHyphenFallback` | | **`Svg`** | `SvgProperties` | `SvgPropertiesHyphen` | `SvgPropertiesFallback` | `SvgPropertiesHyphenFallback` | Categories: - **All** - Includes `Standard`, `Vendor`, `Obsolete` and `Svg` - **`Standard`** - Current properties and extends subcategories `StandardLonghand` and `StandardShorthand` _(e.g. `StandardShorthandProperties`)_ - **`Vendor`** - Vendor prefixed properties and extends subcategories `VendorLonghand` and `VendorShorthand` _(e.g. `VendorShorthandProperties`)_ - **`Obsolete`** - Removed or deprecated properties - **`Svg`** - SVG-specific properties Variations: - **Default** - JavaScript (camel) cased property names - **`Hyphen`** - CSS (kebab) cased property names - **`Fallback`** - Also accepts array of values e.g. `string | string[]` ## At-rule types At-rule interfaces with descriptors. **TypeScript**: These will be found in the `AtRule` namespace, e.g. `AtRule.Viewport`. **Flow**: These will be prefixed with `AtRule$`, e.g. `AtRule$Viewport`. | | Default | `Hyphen` | `Fallback` | `HyphenFallback` | | -------------------- | -------------- | -------------------- | ---------------------- | ---------------------------- | | **`@counter-style`** | `CounterStyle` | `CounterStyleHyphen` | `CounterStyleFallback` | `CounterStyleHyphenFallback` | | **`@font-face`** | `FontFace` | `FontFaceHyphen` | `FontFaceFallback` | `FontFaceHyphenFallback` | | **`@viewport`** | `Viewport` | `ViewportHyphen` | `ViewportFallback` | `ViewportHyphenFallback` | ## Pseudo types String literals of pseudo classes and pseudo elements - `Pseudos` Extends: - `AdvancedPseudos` Function-like pseudos e.g. `:not(:first-child)`. The string literal contains the value excluding the parenthesis: `:not`. These are separated because they require an argument that results in infinite number of variations. - `SimplePseudos` Plain pseudos e.g. `:hover` that can only be **one** variation. ## Generics All interfaces has two optional generic argument to define length and time: `CSS.Properties` - **Length** is the first generic parameter and defaults to `string | 0` because `0` is the only [length where the unit identifier is optional](https://drafts.csswg.org/css-values-3/#lengths). You can specify this, e.g. `string | number`, for platforms and libraries that accepts any numeric value as length with a specific unit. ```tsx const style: CSS.Properties = { width: 100, }; ``` - **Time** is the second generic argument and defaults to `string`. You can specify this, e.g. `string | number`, for platforms and libraries that accepts any numeric value as length with a specific unit. ```tsx const style: CSS.Properties = { transitionDuration: 1000, }; ``` ## Usage ```ts import type * as CSS from 'csstype'; const style: CSS.Properties = { width: '10px', margin: '1em', }; ``` In some cases, like for CSS-in-JS libraries, an array of values is a way to provide fallback values in CSS. Using `CSS.PropertiesFallback` instead of `CSS.Properties` will add the possibility to use any property value as an array of values. ```ts import type * as CSS from 'csstype'; const style: CSS.PropertiesFallback = { display: ['-webkit-flex', 'flex'], color: 'white', }; ``` There's even string literals for pseudo selectors and elements. ```ts import type * as CSS from 'csstype'; const pseudos: { [P in CSS.SimplePseudos]?: CSS.Properties } = { ':hover': { display: 'flex', }, }; ``` Hyphen cased (kebab cased) properties are provided in `CSS.PropertiesHyphen` and `CSS.PropertiesHyphenFallback`. It's not **not** added by default in `CSS.Properties`. To allow both of them, you can simply extend with `CSS.PropertiesHyphen` or/and `CSS.PropertiesHyphenFallback`. ```ts import type * as CSS from 'csstype'; interface Style extends CSS.Properties, CSS.PropertiesHyphen {} const style: Style = { 'flex-grow': 1, 'flex-shrink': 0, 'font-weight': 'normal', backgroundColor: 'white', }; ``` Adding type checked CSS properties to a `HTMLElement`. ```ts import type * as CSS from 'csstype'; const style: CSS.Properties = { color: 'red', margin: '1em', }; let button = document.createElement('button'); Object.assign(button.style, style); ``` ## What should I do when I get type errors? The goal is to have as perfect types as possible and we're trying to do our best. But with CSS Custom Properties, the CSS specification changing frequently and vendors implementing their own specifications with new releases sometimes causes type errors even if it should work. Here's some steps you could take to get it fixed: _If you're using CSS Custom Properties you can step directly to step 3._ 1. **First of all, make sure you're doing it right.** A type error could also indicate that you're not :wink: - Some CSS specs that some vendors has implemented could have been officially rejected or haven't yet received any official acceptance and are therefor not included - If you're using TypeScript, [type widening](https://blog.mariusschulz.com/2017/02/04/TypeScript-2-1-literal-type-widening) could be the reason you get `Type 'string' is not assignable to...` errors 2. **Have a look in [issues](https://github.com/frenic/csstype/issues) to see if an issue already has been filed. If not, create a new one.** To help us out, please refer to any information you have found. 3. Fix the issue locally with **TypeScript** (Flow further down): - The recommended way is to use **module augmentation**. Here's a few examples: ```ts // My css.d.ts file import type * as CSS from 'csstype'; declare module 'csstype' { interface Properties { // Add a missing property WebkitRocketLauncher?: string; // Add a CSS Custom Property '--theme-color'?: 'black' | 'white'; // Allow namespaced CSS Custom Properties [index: `--theme-${string}`]: any; // Allow any CSS Custom Properties [index: `--${string}`]: any; // ...or allow any other property [index: string]: any; } } ``` - The alternative way is to use **type assertion**. Here's a few examples: ```ts const style: CSS.Properties = { // Add a missing property ['WebkitRocketLauncher' as any]: 'launching', // Add a CSS Custom Property ['--theme-color' as any]: 'black', }; ``` Fix the issue locally with **Flow**: - Use **type assertion**. Here's a few examples: ```js const style: $Exact> = { // Add a missing property [('WebkitRocketLauncher': any)]: 'launching', // Add a CSS Custom Property [('--theme-color': any)]: 'black', }; ``` ## Version 3.2 - **No longer compatible with version 2** Conflicts may occur when both version ^3.2.0 and ^2.0.0 are installed. Potential fix for Npm would be to force resolution in `package.json`: ```json { "overrides": { "csstype": "^3.2.0" } } ``` ## Version 3.1 - **Data types are exposed** TypeScript: `DataType.Color` Flow: `DataType$Color` ## Version 3.0 - **All property types are exposed with namespace** TypeScript: `Property.AlignContent` (was `AlignContentProperty` before) Flow: `Property$AlignContent` - **All at-rules are exposed with namespace** TypeScript: `AtRule.FontFace` (was `FontFace` before) Flow: `AtRule$FontFace` - **Data types are NOT exposed** E.g. `Color` and `Box`. Because the generation of data types may suddenly be removed or renamed. - **TypeScript hack for autocompletion** Uses `(string & {})` for literal string unions and `(number & {})` for literal number unions ([related issue](https://github.com/microsoft/TypeScript/issues/29729)). Utilize `PropertyValue` to unpack types from e.g. `(string & {})` to `string`. - **New generic for time** Read more on the ["Generics"](#generics) section. - **Flow types improvements** Flow Strict enabled and exact types are used. ## Contributing **Never modify `index.d.ts` and `index.js.flow` directly. They are generated automatically and committed so that we can easily follow any change it results in.** Therefor it's important that you run `$ git config merge.ours.driver true` after you've forked and cloned. That setting prevents merge conflicts when doing rebase. ### Commands - `npm run build` Generates typings and type checks them - `npm run watch` Runs build on each save - `npm run test` Runs the tests - `npm run lazy` Type checks, lints and formats everything frenic-csstype-47a4c33/__tests__/000077500000000000000000000000001510660504500167425ustar00rootroot00000000000000frenic-csstype-47a4c33/__tests__/__fixtures__/000077500000000000000000000000001510660504500214075ustar00rootroot00000000000000frenic-csstype-47a4c33/__tests__/__fixtures__/.flowconfig000066400000000000000000000004131510660504500235430ustar00rootroot00000000000000[ignore] .*/node_modules/.* [include] ../../index.js.flow [libs] [lints] untyped-import=warn [options] [strict] sketchy-null sketchy-number untyped-type-import unclear-type unsafe-getters-setters nonstrict-import unnecessary-optional-chain unnecessary-invariant frenic-csstype-47a4c33/__tests__/__fixtures__/package.json000066400000000000000000000003141510660504500236730ustar00rootroot00000000000000{ "name": "csstype-fixtures", "private": true, "dependencies": { "csstype": "file:../..", "oldcsstype": "npm:csstype@^2.6.21" }, "overrides": { "js-yaml": ">=4.1.1" } } frenic-csstype-47a4c33/__tests__/__fixtures__/typecheck.js000066400000000000000000000024021510660504500237220ustar00rootroot00000000000000// @flow strict import * as CSS from '../../index.js.flow'; const css: CSS.Properties<> = { flexGrow: 1, flexShrink: 1, flexBasis: 'max-content', flexDirection: 'row', MozAppearance: 'button', msOverflowStyle: 'scrollbar', color: '#abcdef', // Test custom string borderBottomWidth: 'calc(1px)', // This property has `TLength` (but not `string` itself) so // if this fails it may have something to do with default generic values lineHeightStep: '2em', }; const cssWithFallbackValues: CSS.PropertiesFallback<> = { flexGrow: [1], flexShrink: [1], flexBasis: ['max-content'], flexDirection: ['row'], MozAppearance: ['button'], msOverflowStyle: ['scrollbar'], }; const cssWithHyphenProperties: CSS.PropertiesHyphen<> = { 'flex-grow': 1, 'flex-shrink': 0, 'flex-basis': 'max-content', 'flex-direction': 'row', '-moz-appearance': 'button', '-ms-overflow-style': 'scrollbar', }; const cssWithDifferentLength: CSS.Properties = { width: 1, }; const unknownProperty: CSS.Properties<> = { unknownProperty: 1, }; // Should fail but doesn't const cssWithDisallowedValue: CSS.Properties<> = { order: '0', }; // Should fail but doesn't const cssWithDisallowedFallbackValues: CSS.Properties<> = { bottom: [0], order: [0], }; frenic-csstype-47a4c33/__tests__/__fixtures__/typecheck.ts000066400000000000000000000106761510660504500237500ustar00rootroot00000000000000import * as CSS from '../..'; // Old CSSType import needs to be AFTER the current one import * as OldCSS from 'oldcsstype'; const css: CSS.Properties = { flexGrow: 1, flexShrink: 1, flexBasis: 'max-content', flexDirection: 'row', MozAppearance: 'button', msOverflowStyle: 'scrollbar', color: '#abcdef', height: undefined, fontWeight: '400', // Test custom string width: 'calc(1px)', // This property has `TLength` (but not `(string & {})` itself) so // if this fails it may have something to do with default generic values lineHeightStep: '2em', }; const cssWithFallbackValues: CSS.PropertiesFallback = { flexGrow: [1], flexShrink: [1], flexBasis: ['max-content'], flexDirection: ['row'], MozAppearance: ['button'], msOverflowStyle: ['scrollbar'], height: undefined, clip: [undefined], }; const cssWithFallbackConstValues: CSS.PropertiesFallback = { flexGrow: [1] as const, flexShrink: [1] as const, flexBasis: ['max-content'] as const, flexDirection: ['row'] as const, MozAppearance: ['button'] as const, msOverflowStyle: ['scrollbar'] as const, height: undefined, clip: [undefined] as const, }; const cssWithHyphenProperties: CSS.PropertiesHyphen = { 'flex-grow': 1, 'flex-shrink': 0, 'flex-basis': 'max-content', 'flex-direction': 'row', '-moz-appearance': 'button', '-ms-overflow-style': 'scrollbar', }; const cssWithDifferentLength: CSS.Properties<{ px: number }> = { width: { px: 1 }, }; const unknownProperty: CSS.Properties = { unknownProperty: 1, }; const cssWithDisallowedFallbackValues: CSS.Properties = { bottom: [0], order: [0], }; // Tests autocomplete hack const autocompleteHackShouldPass: string & {} = ''; const autocompleteHackShouldFail: string & {} = {}; function autocompleteHackTypeGuardProblem(value: CSS.Property.Width) { if (value === 'auto') { // If this passes it could mean that `CSS.PropertyValue` isn't needed anymore const wouldBeNiceIfThisPassed: 'auto' = value; wouldBeNiceIfThisPassed; } } const propertyValueShouldPass1: CSS.PropertyValue = 'auto'; const propertyValueShouldPass2: CSS.PropertyValue = 0; const propertyValueShouldFail: CSS.PropertyValue = 1; function propertyValue(value: CSS.PropertyValue) { if (value === 'auto') { const shouldPass: 'auto' = value; shouldPass; } if (typeof value === 'number') { const shouldPass: 0 = value; shouldPass; } { const shouldFail = value === 1; shouldFail; } if (Array.isArray(value)) { const arrayValue = value[0]; if (arrayValue === 'auto') { const shouldPass: 'auto' = arrayValue; shouldPass; } if (typeof arrayValue === 'number') { const shouldPass: 0 = arrayValue; shouldPass; } { const shouldFail = arrayValue === 1; shouldFail; } } } propertyValue('auto'); // Should pass propertyValue(['auto']); // Should pass propertyValue(0); // Should pass propertyValue([0]); // Should pass propertyValue(1); // Should fail propertyValue([1]); // Should fail function propertyValueWithAutocompleteHack(arg: CSS.Property.Width | [CSS.Property.Width]) { const value = arg as CSS.PropertyValue; if (value === 'auto') { const shouldPass: 'auto' = value; shouldPass; } if (typeof value === 'number') { const shouldPass: 0 = value; shouldPass; } { const shouldFail = value === 1; shouldFail; } if (Array.isArray(value)) { const arrayValue = value[0]; if (arrayValue === 'auto') { const shouldPass: 'auto' = arrayValue; shouldPass; } if (typeof arrayValue === 'number') { const shouldPass: 0 = arrayValue; shouldPass; } { const shouldFail = arrayValue === 1; shouldFail; } } } propertyValueWithAutocompleteHack('auto'); // Should pass propertyValueWithAutocompleteHack(['auto']); // Should pass propertyValueWithAutocompleteHack(0); // Should pass propertyValueWithAutocompleteHack([0]); // Should pass propertyValueWithAutocompleteHack(1); // Should fail propertyValueWithAutocompleteHack([1]); // Should fail css; cssWithFallbackValues; cssWithFallbackConstValues; cssWithHyphenProperties; cssWithDifferentLength; unknownProperty; cssWithDisallowedFallbackValues; autocompleteHackShouldPass; autocompleteHackShouldFail; autocompleteHackTypeGuardProblem; propertyValueShouldPass1; propertyValueShouldPass2; propertyValueShouldFail; frenic-csstype-47a4c33/__tests__/__snapshots__/000077500000000000000000000000001510660504500215605ustar00rootroot00000000000000frenic-csstype-47a4c33/__tests__/__snapshots__/dist.flow.ts.snap000066400000000000000000000025161510660504500250050ustar00rootroot00000000000000// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing exports[`it detects errors 1`] = `"42:43 - Cannot assign object literal to \`unknownProperty\` because property \`unknownProperty\` is extra in object literal [1] but missing in \`Properties\` [2]. Exact objects do not accept extra props. [incompatible-type]"`; exports[`it detects errors 2`] = `"48:10 - Cannot assign object literal to \`cssWithDisallowedValue\` because in property \`order\`: [incompatible-type] Either string [1] is incompatible with number [2]. Or string literal \`0\` [1] is incompatible with \`Globals\` [3]."`; exports[`it detects errors 3`] = `"53:11 - Cannot assign object literal to \`cssWithDisallowedFallbackValues\` because in property \`bottom\`: [incompatible-type] Either array literal [1] is incompatible with \`Globals\` [2]. Or array literal [1] is incompatible with string [3]. Or array literal [1] is incompatible with number literal \`0\` [4]. Or array literal [1] is incompatible with string literal \`auto\` [5]. Or array literal [1] is incompatible with string [6]."`; exports[`it detects errors 4`] = `"54:10 - Cannot assign object literal to \`cssWithDisallowedFallbackValues\` because in property \`order\`: [incompatible-type] Either array literal [1] is incompatible with \`Globals\` [2]. Or array literal [1] is incompatible with number [3]."`; frenic-csstype-47a4c33/__tests__/__snapshots__/dist.typescript-3.5.ts.snap000066400000000000000000000105601510660504500265450ustar00rootroot00000000000000// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing exports[`Typescript 3.5 detects errors 1`] = ` "31:2 - Type 'undefined[]' is not assignable to type '"auto" | "inherit" | (string & {}) | "-moz-initial" | "initial" | "revert" | "revert-layer" | "unset" | readonly HyphenateCharacter[] | undefined'. Type 'undefined[]' is not assignable to type 'readonly HyphenateCharacter[]'. Type 'undefined' is not assignable to type 'HyphenateCharacter'." `; exports[`Typescript 3.5 detects errors 2`] = ` "42:2 - Type 'readonly [undefined]' is not assignable to type '"auto" | "inherit" | (string & {}) | "-moz-initial" | "initial" | "revert" | "revert-layer" | "unset" | readonly HyphenateCharacter[] | undefined'. Type 'readonly [undefined]' is not assignable to type 'readonly HyphenateCharacter[]'. Type 'undefined' is not assignable to type 'HyphenateCharacter'." `; exports[`Typescript 3.5 detects errors 3`] = ` "59:2 - Type '{ unknownProperty: number; }' is not assignable to type 'Properties<0 | (string & {}), string & {}>'. Object literal may only specify known properties, and 'unknownProperty' does not exist in type 'Properties<0 | (string & {}), string & {}>'." `; exports[`Typescript 3.5 detects errors 4`] = ` "63:2 - Type 'number[]' is not assignable to type '0 | "auto" | "inherit" | (string & {}) | "-moz-initial" | "initial" | "revert" | "revert-layer" | "unset" | undefined'. Type 'number[]' is not assignable to type '"unset"'." `; exports[`Typescript 3.5 detects errors 5`] = ` "64:2 - Type 'number[]' is not assignable to type '"inherit" | (string & {}) | "-moz-initial" | "initial" | "revert" | "revert-layer" | "unset" | (number & {}) | undefined'. Type 'number[]' is not assignable to type '"unset"'." `; exports[`Typescript 3.5 detects errors 6`] = ` "69:6 - Type '{}' is not assignable to type 'string & {}'. Type '{}' is not assignable to type 'string'." `; exports[`Typescript 3.5 detects errors 7`] = ` "74:10 - Type 'Range' is not assignable to type '"auto"'. Type 'string & {}' is not assignable to type '"auto"'." `; exports[`Typescript 3.5 detects errors 8`] = `"81:6 - Type '1' is not assignable to type 'string | 0'."`; exports[`Typescript 3.5 detects errors 9`] = `"93:23 - This condition will always return 'false' since the types 'string | 0 | (string | 0)[]' and '1' have no overlap."`; exports[`Typescript 3.5 detects errors 10`] = `"107:25 - This condition will always return 'false' since the types 'string | 0' and '1' have no overlap."`; exports[`Typescript 3.5 detects errors 11`] = `"117:14 - Argument of type '1' is not assignable to parameter of type 'string | 0 | (string | 0)[]'."`; exports[`Typescript 3.5 detects errors 12`] = ` "118:14 - Argument of type '1[]' is not assignable to parameter of type 'string | 0 | (string | 0)[]'. Type '1[]' is not assignable to type '(string | 0)[]'. Type '1' is not assignable to type 'string | 0'." `; exports[`Typescript 3.5 detects errors 13`] = `"131:23 - This condition will always return 'false' since the types 'string | 0 | (string | 0)[]' and '1' have no overlap."`; exports[`Typescript 3.5 detects errors 14`] = `"145:25 - This condition will always return 'false' since the types 'string | 0' and '1' have no overlap."`; exports[`Typescript 3.5 detects errors 15`] = `"155:34 - Argument of type '1' is not assignable to parameter of type '0 | "auto" | "inherit" | (string & {}) | "-moz-initial" | "initial" | "revert" | "revert-layer" | "unset" | "-moz-fit-content" | "-moz-max-content" | "-moz-min-content" | "fit-content" | ... 6 more ... | [...]'."`; exports[`Typescript 3.5 detects errors 16`] = ` "156:34 - Argument of type '[1]' is not assignable to parameter of type '0 | "auto" | "inherit" | (string & {}) | "-moz-initial" | "initial" | "revert" | "revert-layer" | "unset" | "-moz-fit-content" | "-moz-max-content" | "-moz-min-content" | "fit-content" | ... 6 more ... | [...]'. Type '[1]' is not assignable to type '[0 | "auto" | "inherit" | (string & {}) | "-moz-initial" | "initial" | "revert" | "revert-layer" | "unset" | "-moz-fit-content" | "-moz-max-content" | "-moz-min-content" | "fit-content" | ... 5 more ... | "min-intrinsic"]'. Type '1' is not assignable to type '0 | "auto" | "inherit" | (string & {}) | "-moz-initial" | "initial" | "revert" | "revert-layer" | "unset" | "-moz-fit-content" | "-moz-max-content" | "-moz-min-content" | "fit-content" | ... 5 more ... | "min-intrinsic"'." `; frenic-csstype-47a4c33/__tests__/__snapshots__/dist.typescript-3.6.ts.snap000066400000000000000000000105601510660504500265460ustar00rootroot00000000000000// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing exports[`Typescript 3.6 detects errors 1`] = ` "31:2 - Type 'undefined[]' is not assignable to type '"auto" | "inherit" | (string & {}) | "-moz-initial" | "initial" | "revert" | "revert-layer" | "unset" | readonly HyphenateCharacter[] | undefined'. Type 'undefined[]' is not assignable to type 'readonly HyphenateCharacter[]'. Type 'undefined' is not assignable to type 'HyphenateCharacter'." `; exports[`Typescript 3.6 detects errors 2`] = ` "42:2 - Type 'readonly [undefined]' is not assignable to type '"auto" | "inherit" | (string & {}) | "-moz-initial" | "initial" | "revert" | "revert-layer" | "unset" | readonly HyphenateCharacter[] | undefined'. Type 'readonly [undefined]' is not assignable to type 'readonly HyphenateCharacter[]'. Type 'undefined' is not assignable to type 'HyphenateCharacter'." `; exports[`Typescript 3.6 detects errors 3`] = ` "59:2 - Type '{ unknownProperty: number; }' is not assignable to type 'Properties<0 | (string & {}), string & {}>'. Object literal may only specify known properties, and 'unknownProperty' does not exist in type 'Properties<0 | (string & {}), string & {}>'." `; exports[`Typescript 3.6 detects errors 4`] = ` "63:2 - Type 'number[]' is not assignable to type '0 | "auto" | "inherit" | (string & {}) | "-moz-initial" | "initial" | "revert" | "revert-layer" | "unset" | undefined'. Type 'number[]' is not assignable to type '"unset"'." `; exports[`Typescript 3.6 detects errors 5`] = ` "64:2 - Type 'number[]' is not assignable to type '"inherit" | (string & {}) | "-moz-initial" | "initial" | "revert" | "revert-layer" | "unset" | (number & {}) | undefined'. Type 'number[]' is not assignable to type '"unset"'." `; exports[`Typescript 3.6 detects errors 6`] = ` "69:6 - Type '{}' is not assignable to type 'string & {}'. Type '{}' is not assignable to type 'string'." `; exports[`Typescript 3.6 detects errors 7`] = ` "74:10 - Type 'Range' is not assignable to type '"auto"'. Type 'string & {}' is not assignable to type '"auto"'." `; exports[`Typescript 3.6 detects errors 8`] = `"81:6 - Type '1' is not assignable to type 'string | 0'."`; exports[`Typescript 3.6 detects errors 9`] = `"93:23 - This condition will always return 'false' since the types 'string | 0 | (string | 0)[]' and '1' have no overlap."`; exports[`Typescript 3.6 detects errors 10`] = `"107:25 - This condition will always return 'false' since the types 'string | 0' and '1' have no overlap."`; exports[`Typescript 3.6 detects errors 11`] = `"117:14 - Argument of type '1' is not assignable to parameter of type 'string | 0 | (string | 0)[]'."`; exports[`Typescript 3.6 detects errors 12`] = ` "118:14 - Argument of type '1[]' is not assignable to parameter of type 'string | 0 | (string | 0)[]'. Type '1[]' is not assignable to type '(string | 0)[]'. Type '1' is not assignable to type 'string | 0'." `; exports[`Typescript 3.6 detects errors 13`] = `"131:23 - This condition will always return 'false' since the types 'string | 0 | (string | 0)[]' and '1' have no overlap."`; exports[`Typescript 3.6 detects errors 14`] = `"145:25 - This condition will always return 'false' since the types 'string | 0' and '1' have no overlap."`; exports[`Typescript 3.6 detects errors 15`] = `"155:34 - Argument of type '1' is not assignable to parameter of type '0 | "auto" | "inherit" | (string & {}) | "-moz-initial" | "initial" | "revert" | "revert-layer" | "unset" | "-moz-fit-content" | "-moz-max-content" | "-moz-min-content" | "fit-content" | ... 6 more ... | [...]'."`; exports[`Typescript 3.6 detects errors 16`] = ` "156:34 - Argument of type '[1]' is not assignable to parameter of type '0 | "auto" | "inherit" | (string & {}) | "-moz-initial" | "initial" | "revert" | "revert-layer" | "unset" | "-moz-fit-content" | "-moz-max-content" | "-moz-min-content" | "fit-content" | ... 6 more ... | [...]'. Type '[1]' is not assignable to type '[0 | "auto" | "inherit" | (string & {}) | "-moz-initial" | "initial" | "revert" | "revert-layer" | "unset" | "-moz-fit-content" | "-moz-max-content" | "-moz-min-content" | "fit-content" | ... 5 more ... | "min-intrinsic"]'. Type '1' is not assignable to type '0 | "auto" | "inherit" | (string & {}) | "-moz-initial" | "initial" | "revert" | "revert-layer" | "unset" | "-moz-fit-content" | "-moz-max-content" | "-moz-min-content" | "fit-content" | ... 5 more ... | "min-intrinsic"'." `; frenic-csstype-47a4c33/__tests__/__snapshots__/dist.typescript-3.7.ts.snap000066400000000000000000000105601510660504500265470ustar00rootroot00000000000000// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing exports[`Typescript 3.7 detects errors 1`] = ` "31:2 - Type 'undefined[]' is not assignable to type '"auto" | "inherit" | (string & {}) | "-moz-initial" | "initial" | "revert" | "revert-layer" | "unset" | readonly HyphenateCharacter[] | undefined'. Type 'undefined[]' is not assignable to type 'readonly HyphenateCharacter[]'. Type 'undefined' is not assignable to type 'HyphenateCharacter'." `; exports[`Typescript 3.7 detects errors 2`] = ` "42:2 - Type 'readonly [undefined]' is not assignable to type '"auto" | "inherit" | (string & {}) | "-moz-initial" | "initial" | "revert" | "revert-layer" | "unset" | readonly HyphenateCharacter[] | undefined'. Type 'readonly [undefined]' is not assignable to type 'readonly HyphenateCharacter[]'. Type 'undefined' is not assignable to type 'HyphenateCharacter'." `; exports[`Typescript 3.7 detects errors 3`] = ` "59:2 - Type '{ unknownProperty: number; }' is not assignable to type 'Properties<0 | (string & {}), string & {}>'. Object literal may only specify known properties, and 'unknownProperty' does not exist in type 'Properties<0 | (string & {}), string & {}>'." `; exports[`Typescript 3.7 detects errors 4`] = ` "63:2 - Type 'number[]' is not assignable to type '0 | "auto" | "inherit" | (string & {}) | "-moz-initial" | "initial" | "revert" | "revert-layer" | "unset" | undefined'. Type 'number[]' is not assignable to type '"unset"'." `; exports[`Typescript 3.7 detects errors 5`] = ` "64:2 - Type 'number[]' is not assignable to type '"inherit" | (string & {}) | "-moz-initial" | "initial" | "revert" | "revert-layer" | "unset" | (number & {}) | undefined'. Type 'number[]' is not assignable to type '"unset"'." `; exports[`Typescript 3.7 detects errors 6`] = ` "69:6 - Type '{}' is not assignable to type 'string & {}'. Type '{}' is not assignable to type 'string'." `; exports[`Typescript 3.7 detects errors 7`] = ` "74:10 - Type 'Range' is not assignable to type '"auto"'. Type 'string & {}' is not assignable to type '"auto"'." `; exports[`Typescript 3.7 detects errors 8`] = `"81:6 - Type '1' is not assignable to type 'string | 0'."`; exports[`Typescript 3.7 detects errors 9`] = `"93:23 - This condition will always return 'false' since the types 'string | 0 | (string | 0)[]' and '1' have no overlap."`; exports[`Typescript 3.7 detects errors 10`] = `"107:25 - This condition will always return 'false' since the types 'string | 0' and '1' have no overlap."`; exports[`Typescript 3.7 detects errors 11`] = `"117:14 - Argument of type '1' is not assignable to parameter of type 'string | 0 | (string | 0)[]'."`; exports[`Typescript 3.7 detects errors 12`] = ` "118:14 - Argument of type '1[]' is not assignable to parameter of type 'string | 0 | (string | 0)[]'. Type '1[]' is not assignable to type '(string | 0)[]'. Type '1' is not assignable to type 'string | 0'." `; exports[`Typescript 3.7 detects errors 13`] = `"131:23 - This condition will always return 'false' since the types 'string | 0 | (string | 0)[]' and '1' have no overlap."`; exports[`Typescript 3.7 detects errors 14`] = `"145:25 - This condition will always return 'false' since the types 'string | 0' and '1' have no overlap."`; exports[`Typescript 3.7 detects errors 15`] = `"155:34 - Argument of type '1' is not assignable to parameter of type '0 | "auto" | "inherit" | (string & {}) | "-moz-initial" | "initial" | "revert" | "revert-layer" | "unset" | "-moz-fit-content" | "-moz-max-content" | "-moz-min-content" | "fit-content" | ... 6 more ... | [...]'."`; exports[`Typescript 3.7 detects errors 16`] = ` "156:34 - Argument of type '[1]' is not assignable to parameter of type '0 | "auto" | "inherit" | (string & {}) | "-moz-initial" | "initial" | "revert" | "revert-layer" | "unset" | "-moz-fit-content" | "-moz-max-content" | "-moz-min-content" | "fit-content" | ... 6 more ... | [...]'. Type '[1]' is not assignable to type '[0 | "auto" | "inherit" | (string & {}) | "-moz-initial" | "initial" | "revert" | "revert-layer" | "unset" | "-moz-fit-content" | "-moz-max-content" | "-moz-min-content" | "fit-content" | ... 5 more ... | "min-intrinsic"]'. Type '1' is not assignable to type '0 | "auto" | "inherit" | (string & {}) | "-moz-initial" | "initial" | "revert" | "revert-layer" | "unset" | "-moz-fit-content" | "-moz-max-content" | "-moz-min-content" | "fit-content" | ... 5 more ... | "min-intrinsic"'." `; frenic-csstype-47a4c33/__tests__/__snapshots__/dist.typescript-3.8.ts.snap000066400000000000000000000061131510660504500265470ustar00rootroot00000000000000// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing exports[`Typescript 3.8 detects errors 1`] = `"31:9 - Type 'undefined' is not assignable to type 'HyphenateCharacter'."`; exports[`Typescript 3.8 detects errors 2`] = ` "42:2 - Type 'readonly [undefined]' is not assignable to type '"auto" | "inherit" | (string & {}) | "-moz-initial" | "initial" | "revert" | "revert-layer" | "unset" | readonly HyphenateCharacter[] | undefined'. Type 'readonly [undefined]' is not assignable to type 'readonly HyphenateCharacter[]'. Type 'undefined' is not assignable to type 'HyphenateCharacter'." `; exports[`Typescript 3.8 detects errors 3`] = ` "59:2 - Type '{ unknownProperty: number; }' is not assignable to type 'Properties<0 | (string & {}), string & {}>'. Object literal may only specify known properties, and 'unknownProperty' does not exist in type 'Properties<0 | (string & {}), string & {}>'." `; exports[`Typescript 3.8 detects errors 4`] = `"63:11 - Type 'number' is not assignable to type 'string'."`; exports[`Typescript 3.8 detects errors 5`] = `"64:10 - Type 'number' is not assignable to type 'string'."`; exports[`Typescript 3.8 detects errors 6`] = ` "69:6 - Type '{}' is not assignable to type 'string & {}'. Type '{}' is not assignable to type 'string'." `; exports[`Typescript 3.8 detects errors 7`] = ` "74:10 - Type 'Range' is not assignable to type '"auto"'. Type 'string & {}' is not assignable to type '"auto"'." `; exports[`Typescript 3.8 detects errors 8`] = `"81:6 - Type '1' is not assignable to type 'string | 0'."`; exports[`Typescript 3.8 detects errors 9`] = `"93:23 - This condition will always return 'false' since the types 'string | 0 | (string | 0)[]' and '1' have no overlap."`; exports[`Typescript 3.8 detects errors 10`] = `"107:25 - This condition will always return 'false' since the types 'string | 0' and '1' have no overlap."`; exports[`Typescript 3.8 detects errors 11`] = `"117:14 - Argument of type '1' is not assignable to parameter of type 'string | 0 | (string | 0)[]'."`; exports[`Typescript 3.8 detects errors 12`] = `"118:15 - Type 'number' is not assignable to type 'string | 0'."`; exports[`Typescript 3.8 detects errors 13`] = `"131:23 - This condition will always return 'false' since the types 'string | 0 | (string | 0)[]' and '1' have no overlap."`; exports[`Typescript 3.8 detects errors 14`] = `"145:25 - This condition will always return 'false' since the types 'string | 0' and '1' have no overlap."`; exports[`Typescript 3.8 detects errors 15`] = `"155:34 - Argument of type '1' is not assignable to parameter of type '0 | "auto" | "inherit" | (string & {}) | "-moz-initial" | "initial" | "revert" | "revert-layer" | "unset" | "-moz-fit-content" | "-moz-max-content" | "-moz-min-content" | "fit-content" | ... 6 more ... | [...]'."`; exports[`Typescript 3.8 detects errors 16`] = `"156:35 - Type '1' is not assignable to type '0 | "auto" | "inherit" | (string & {}) | "-moz-initial" | "initial" | "revert" | "revert-layer" | "unset" | "-moz-fit-content" | "-moz-max-content" | "-moz-min-content" | "fit-content" | ... 5 more ... | "min-intrinsic"'."`; frenic-csstype-47a4c33/__tests__/__snapshots__/dist.typescript-3.9.ts.snap000066400000000000000000000056031510660504500265530ustar00rootroot00000000000000// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing exports[`Typescript 3.9 detects errors 1`] = `"31:9 - Type 'undefined' is not assignable to type 'HyphenateCharacter'."`; exports[`Typescript 3.9 detects errors 2`] = ` "42:2 - Type 'readonly [undefined]' is not assignable to type '"auto" | "inherit" | (string & {}) | "-moz-initial" | "initial" | "revert" | "revert-layer" | "unset" | readonly HyphenateCharacter[] | undefined'. Type 'readonly [undefined]' is not assignable to type 'readonly HyphenateCharacter[]'. Type 'undefined' is not assignable to type 'HyphenateCharacter'." `; exports[`Typescript 3.9 detects errors 3`] = ` "59:2 - Type '{ unknownProperty: number; }' is not assignable to type 'Properties<0 | (string & {}), string & {}>'. Object literal may only specify known properties, and 'unknownProperty' does not exist in type 'Properties<0 | (string & {}), string & {}>'." `; exports[`Typescript 3.9 detects errors 4`] = `"63:11 - Type 'number' is not assignable to type 'string'."`; exports[`Typescript 3.9 detects errors 5`] = `"64:10 - Type 'number' is not assignable to type 'string'."`; exports[`Typescript 3.9 detects errors 6`] = ` "69:6 - Type '{}' is not assignable to type 'string & {}'. Type '{}' is not assignable to type 'string'." `; exports[`Typescript 3.9 detects errors 7`] = ` "74:10 - Type 'Range' is not assignable to type '"auto"'. Type 'string & {}' is not assignable to type '"auto"'." `; exports[`Typescript 3.9 detects errors 8`] = `"81:6 - Type '1' is not assignable to type 'string | 0'."`; exports[`Typescript 3.9 detects errors 9`] = `"93:23 - This condition will always return 'false' since the types 'string | 0 | (string | 0)[]' and '1' have no overlap."`; exports[`Typescript 3.9 detects errors 10`] = `"107:25 - This condition will always return 'false' since the types 'string | 0' and '1' have no overlap."`; exports[`Typescript 3.9 detects errors 11`] = `"117:14 - Argument of type '1' is not assignable to parameter of type 'string | 0 | (string | 0)[]'."`; exports[`Typescript 3.9 detects errors 12`] = `"118:15 - Type '1' is not assignable to type 'string | 0'."`; exports[`Typescript 3.9 detects errors 13`] = `"131:23 - This condition will always return 'false' since the types 'string | 0 | (string | 0)[]' and '1' have no overlap."`; exports[`Typescript 3.9 detects errors 14`] = `"145:25 - This condition will always return 'false' since the types 'string | 0' and '1' have no overlap."`; exports[`Typescript 3.9 detects errors 15`] = `"155:34 - Argument of type '1' is not assignable to parameter of type '0 | "auto" | "inherit" | (string & {}) | "-moz-initial" | "initial" | "revert" | "revert-layer" | "unset" | "-moz-fit-content" | "-moz-max-content" | "-moz-min-content" | "fit-content" | ... 6 more ... | [...]'."`; exports[`Typescript 3.9 detects errors 16`] = `"156:35 - Type '1' is not assignable to type 'Width<0 | (string & {})>'."`; frenic-csstype-47a4c33/__tests__/__snapshots__/dist.typescript-4.0.ts.snap000066400000000000000000000056031510660504500265430ustar00rootroot00000000000000// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing exports[`Typescript 4.0 detects errors 1`] = `"31:9 - Type 'undefined' is not assignable to type 'HyphenateCharacter'."`; exports[`Typescript 4.0 detects errors 2`] = ` "42:2 - Type 'readonly [undefined]' is not assignable to type '"auto" | "inherit" | (string & {}) | "-moz-initial" | "initial" | "revert" | "revert-layer" | "unset" | readonly HyphenateCharacter[] | undefined'. Type 'readonly [undefined]' is not assignable to type 'readonly HyphenateCharacter[]'. Type 'undefined' is not assignable to type 'HyphenateCharacter'." `; exports[`Typescript 4.0 detects errors 3`] = ` "59:2 - Type '{ unknownProperty: number; }' is not assignable to type 'Properties<0 | (string & {}), string & {}>'. Object literal may only specify known properties, and 'unknownProperty' does not exist in type 'Properties<0 | (string & {}), string & {}>'." `; exports[`Typescript 4.0 detects errors 4`] = `"63:11 - Type 'number' is not assignable to type 'string'."`; exports[`Typescript 4.0 detects errors 5`] = `"64:10 - Type 'number' is not assignable to type 'string'."`; exports[`Typescript 4.0 detects errors 6`] = ` "69:6 - Type '{}' is not assignable to type 'string & {}'. Type '{}' is not assignable to type 'string'." `; exports[`Typescript 4.0 detects errors 7`] = ` "74:10 - Type 'Range' is not assignable to type '"auto"'. Type 'string & {}' is not assignable to type '"auto"'." `; exports[`Typescript 4.0 detects errors 8`] = `"81:6 - Type '1' is not assignable to type 'string | 0'."`; exports[`Typescript 4.0 detects errors 9`] = `"93:23 - This condition will always return 'false' since the types 'string | 0 | (string | 0)[]' and '1' have no overlap."`; exports[`Typescript 4.0 detects errors 10`] = `"107:25 - This condition will always return 'false' since the types 'string | 0' and '1' have no overlap."`; exports[`Typescript 4.0 detects errors 11`] = `"117:14 - Argument of type '1' is not assignable to parameter of type 'string | 0 | (string | 0)[]'."`; exports[`Typescript 4.0 detects errors 12`] = `"118:15 - Type '1' is not assignable to type 'string | 0'."`; exports[`Typescript 4.0 detects errors 13`] = `"131:23 - This condition will always return 'false' since the types 'string | 0 | (string | 0)[]' and '1' have no overlap."`; exports[`Typescript 4.0 detects errors 14`] = `"145:25 - This condition will always return 'false' since the types 'string | 0' and '1' have no overlap."`; exports[`Typescript 4.0 detects errors 15`] = `"155:34 - Argument of type '1' is not assignable to parameter of type '0 | "auto" | "inherit" | (string & {}) | "-moz-initial" | "initial" | "revert" | "revert-layer" | "unset" | "-moz-fit-content" | "-moz-max-content" | "-moz-min-content" | "fit-content" | ... 6 more ... | [...]'."`; exports[`Typescript 4.0 detects errors 16`] = `"156:35 - Type '1' is not assignable to type 'Width<0 | (string & {})>'."`; frenic-csstype-47a4c33/__tests__/__snapshots__/dist.typescript-4.1.ts.snap000066400000000000000000000056031510660504500265440ustar00rootroot00000000000000// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing exports[`Typescript 4.1 detects errors 1`] = `"31:9 - Type 'undefined' is not assignable to type 'HyphenateCharacter'."`; exports[`Typescript 4.1 detects errors 2`] = ` "42:2 - Type 'readonly [undefined]' is not assignable to type '"auto" | "inherit" | (string & {}) | "-moz-initial" | "initial" | "revert" | "revert-layer" | "unset" | readonly HyphenateCharacter[] | undefined'. Type 'readonly [undefined]' is not assignable to type 'readonly HyphenateCharacter[]'. Type 'undefined' is not assignable to type 'HyphenateCharacter'." `; exports[`Typescript 4.1 detects errors 3`] = ` "59:2 - Type '{ unknownProperty: number; }' is not assignable to type 'Properties<0 | (string & {}), string & {}>'. Object literal may only specify known properties, and 'unknownProperty' does not exist in type 'Properties<0 | (string & {}), string & {}>'." `; exports[`Typescript 4.1 detects errors 4`] = `"63:11 - Type 'number' is not assignable to type 'string'."`; exports[`Typescript 4.1 detects errors 5`] = `"64:10 - Type 'number' is not assignable to type 'string'."`; exports[`Typescript 4.1 detects errors 6`] = ` "69:6 - Type '{}' is not assignable to type 'string & {}'. Type '{}' is not assignable to type 'string'." `; exports[`Typescript 4.1 detects errors 7`] = ` "74:10 - Type 'Range' is not assignable to type '"auto"'. Type 'string & {}' is not assignable to type '"auto"'." `; exports[`Typescript 4.1 detects errors 8`] = `"81:6 - Type '1' is not assignable to type 'string | 0'."`; exports[`Typescript 4.1 detects errors 9`] = `"93:23 - This condition will always return 'false' since the types 'string | 0 | (string | 0)[]' and '1' have no overlap."`; exports[`Typescript 4.1 detects errors 10`] = `"107:25 - This condition will always return 'false' since the types 'string | 0' and '1' have no overlap."`; exports[`Typescript 4.1 detects errors 11`] = `"117:14 - Argument of type '1' is not assignable to parameter of type 'string | 0 | (string | 0)[]'."`; exports[`Typescript 4.1 detects errors 12`] = `"118:15 - Type '1' is not assignable to type 'string | 0'."`; exports[`Typescript 4.1 detects errors 13`] = `"131:23 - This condition will always return 'false' since the types 'string | 0 | (string | 0)[]' and '1' have no overlap."`; exports[`Typescript 4.1 detects errors 14`] = `"145:25 - This condition will always return 'false' since the types 'string | 0' and '1' have no overlap."`; exports[`Typescript 4.1 detects errors 15`] = `"155:34 - Argument of type '1' is not assignable to parameter of type '0 | "auto" | "inherit" | (string & {}) | "-moz-initial" | "initial" | "revert" | "revert-layer" | "unset" | "-moz-fit-content" | "-moz-max-content" | "-moz-min-content" | "fit-content" | ... 6 more ... | [...]'."`; exports[`Typescript 4.1 detects errors 16`] = `"156:35 - Type '1' is not assignable to type 'Width<0 | (string & {})>'."`; frenic-csstype-47a4c33/__tests__/__snapshots__/dist.typescript-4.2.ts.snap000066400000000000000000000051371510660504500265470ustar00rootroot00000000000000// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing exports[`Typescript 4.2 detects errors 1`] = `"31:9 - Type 'undefined' is not assignable to type 'Clip'."`; exports[`Typescript 4.2 detects errors 2`] = ` "42:2 - Type 'readonly [undefined]' is not assignable to type 'Clip | readonly Clip[] | undefined'. Type 'readonly [undefined]' is not assignable to type 'readonly Clip[]'. Type 'undefined' is not assignable to type 'Clip'." `; exports[`Typescript 4.2 detects errors 3`] = ` "59:2 - Type '{ unknownProperty: number; }' is not assignable to type 'Properties<0 | (string & {}), string & {}>'. Object literal may only specify known properties, and 'unknownProperty' does not exist in type 'Properties<0 | (string & {}), string & {}>'." `; exports[`Typescript 4.2 detects errors 4`] = `"63:11 - Type 'number' is not assignable to type 'string'."`; exports[`Typescript 4.2 detects errors 5`] = `"64:10 - Type 'number' is not assignable to type 'string'."`; exports[`Typescript 4.2 detects errors 6`] = ` "69:6 - Type '{}' is not assignable to type 'string & {}'. Type '{}' is not assignable to type 'string'." `; exports[`Typescript 4.2 detects errors 7`] = ` "74:10 - Type '"auto" | (string & {})' is not assignable to type '"auto"'. Type 'string & {}' is not assignable to type '"auto"'." `; exports[`Typescript 4.2 detects errors 8`] = `"81:6 - Type '1' is not assignable to type 'string | 0'."`; exports[`Typescript 4.2 detects errors 9`] = `"93:23 - This condition will always return 'false' since the types 'string | 0 | (string | 0)[]' and '1' have no overlap."`; exports[`Typescript 4.2 detects errors 10`] = `"107:25 - This condition will always return 'false' since the types 'string | 0' and '1' have no overlap."`; exports[`Typescript 4.2 detects errors 11`] = `"117:14 - Argument of type '1' is not assignable to parameter of type 'string | 0 | (string | 0)[]'."`; exports[`Typescript 4.2 detects errors 12`] = `"118:15 - Type '1' is not assignable to type 'string | 0'."`; exports[`Typescript 4.2 detects errors 13`] = `"131:23 - This condition will always return 'false' since the types 'string | 0 | (string | 0)[]' and '1' have no overlap."`; exports[`Typescript 4.2 detects errors 14`] = `"145:25 - This condition will always return 'false' since the types 'string | 0' and '1' have no overlap."`; exports[`Typescript 4.2 detects errors 15`] = `"155:34 - Argument of type '1' is not assignable to parameter of type 'Width<0 | (string & {})> | [Width<0 | (string & {})>]'."`; exports[`Typescript 4.2 detects errors 16`] = `"156:35 - Type '1' is not assignable to type 'Width<0 | (string & {})>'."`; frenic-csstype-47a4c33/__tests__/__snapshots__/dist.typescript-4.3.ts.snap000066400000000000000000000051371510660504500265500ustar00rootroot00000000000000// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing exports[`Typescript 4.3 detects errors 1`] = `"31:9 - Type 'undefined' is not assignable to type 'Clip'."`; exports[`Typescript 4.3 detects errors 2`] = ` "42:2 - Type 'readonly [undefined]' is not assignable to type 'Clip | readonly Clip[] | undefined'. Type 'readonly [undefined]' is not assignable to type 'readonly Clip[]'. Type 'undefined' is not assignable to type 'Clip'." `; exports[`Typescript 4.3 detects errors 3`] = ` "59:2 - Type '{ unknownProperty: number; }' is not assignable to type 'Properties<0 | (string & {}), string & {}>'. Object literal may only specify known properties, and 'unknownProperty' does not exist in type 'Properties<0 | (string & {}), string & {}>'." `; exports[`Typescript 4.3 detects errors 4`] = `"63:11 - Type 'number' is not assignable to type 'string'."`; exports[`Typescript 4.3 detects errors 5`] = `"64:10 - Type 'number' is not assignable to type 'string'."`; exports[`Typescript 4.3 detects errors 6`] = ` "69:6 - Type '{}' is not assignable to type 'string & {}'. Type '{}' is not assignable to type 'string'." `; exports[`Typescript 4.3 detects errors 7`] = ` "74:10 - Type '"auto" | (string & {})' is not assignable to type '"auto"'. Type 'string & {}' is not assignable to type '"auto"'." `; exports[`Typescript 4.3 detects errors 8`] = `"81:6 - Type '1' is not assignable to type 'string | 0'."`; exports[`Typescript 4.3 detects errors 9`] = `"93:23 - This condition will always return 'false' since the types 'string | 0 | (string | 0)[]' and '1' have no overlap."`; exports[`Typescript 4.3 detects errors 10`] = `"107:25 - This condition will always return 'false' since the types 'string | 0' and '1' have no overlap."`; exports[`Typescript 4.3 detects errors 11`] = `"117:14 - Argument of type '1' is not assignable to parameter of type 'string | 0 | (string | 0)[]'."`; exports[`Typescript 4.3 detects errors 12`] = `"118:15 - Type '1' is not assignable to type 'string | 0'."`; exports[`Typescript 4.3 detects errors 13`] = `"131:23 - This condition will always return 'false' since the types 'string | 0 | (string | 0)[]' and '1' have no overlap."`; exports[`Typescript 4.3 detects errors 14`] = `"145:25 - This condition will always return 'false' since the types 'string | 0' and '1' have no overlap."`; exports[`Typescript 4.3 detects errors 15`] = `"155:34 - Argument of type '1' is not assignable to parameter of type 'Width<0 | (string & {})> | [Width<0 | (string & {})>]'."`; exports[`Typescript 4.3 detects errors 16`] = `"156:35 - Type '1' is not assignable to type 'Width<0 | (string & {})>'."`; frenic-csstype-47a4c33/__tests__/__snapshots__/dist.typescript-4.4.ts.snap000066400000000000000000000051371510660504500265510ustar00rootroot00000000000000// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing exports[`Typescript 4.4 detects errors 1`] = `"31:9 - Type 'undefined' is not assignable to type 'Clip'."`; exports[`Typescript 4.4 detects errors 2`] = ` "42:2 - Type 'readonly [undefined]' is not assignable to type 'Clip | readonly Clip[] | undefined'. Type 'readonly [undefined]' is not assignable to type 'readonly Clip[]'. Type 'undefined' is not assignable to type 'Clip'." `; exports[`Typescript 4.4 detects errors 3`] = ` "59:2 - Type '{ unknownProperty: number; }' is not assignable to type 'Properties<0 | (string & {}), string & {}>'. Object literal may only specify known properties, and 'unknownProperty' does not exist in type 'Properties<0 | (string & {}), string & {}>'." `; exports[`Typescript 4.4 detects errors 4`] = `"63:11 - Type 'number' is not assignable to type 'string'."`; exports[`Typescript 4.4 detects errors 5`] = `"64:10 - Type 'number' is not assignable to type 'string'."`; exports[`Typescript 4.4 detects errors 6`] = ` "69:6 - Type '{}' is not assignable to type 'string & {}'. Type '{}' is not assignable to type 'string'." `; exports[`Typescript 4.4 detects errors 7`] = ` "74:10 - Type '"auto" | (string & {})' is not assignable to type '"auto"'. Type 'string & {}' is not assignable to type '"auto"'." `; exports[`Typescript 4.4 detects errors 8`] = `"81:6 - Type '1' is not assignable to type 'string | 0'."`; exports[`Typescript 4.4 detects errors 9`] = `"93:23 - This condition will always return 'false' since the types 'string | 0 | (string | 0)[]' and '1' have no overlap."`; exports[`Typescript 4.4 detects errors 10`] = `"107:25 - This condition will always return 'false' since the types 'string | 0' and '1' have no overlap."`; exports[`Typescript 4.4 detects errors 11`] = `"117:14 - Argument of type '1' is not assignable to parameter of type 'string | 0 | (string | 0)[]'."`; exports[`Typescript 4.4 detects errors 12`] = `"118:15 - Type '1' is not assignable to type 'string | 0'."`; exports[`Typescript 4.4 detects errors 13`] = `"131:23 - This condition will always return 'false' since the types 'string | 0 | (string | 0)[]' and '1' have no overlap."`; exports[`Typescript 4.4 detects errors 14`] = `"145:25 - This condition will always return 'false' since the types 'string | 0' and '1' have no overlap."`; exports[`Typescript 4.4 detects errors 15`] = `"155:34 - Argument of type '1' is not assignable to parameter of type 'Width<0 | (string & {})> | [Width<0 | (string & {})>]'."`; exports[`Typescript 4.4 detects errors 16`] = `"156:35 - Type '1' is not assignable to type 'Width<0 | (string & {})>'."`; frenic-csstype-47a4c33/__tests__/__snapshots__/dist.typescript-4.5.ts.snap000066400000000000000000000051371510660504500265520ustar00rootroot00000000000000// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing exports[`Typescript 4.5 detects errors 1`] = `"31:9 - Type 'undefined' is not assignable to type 'Clip'."`; exports[`Typescript 4.5 detects errors 2`] = ` "42:2 - Type 'readonly [undefined]' is not assignable to type 'Clip | readonly Clip[] | undefined'. Type 'readonly [undefined]' is not assignable to type 'readonly Clip[]'. Type 'undefined' is not assignable to type 'Clip'." `; exports[`Typescript 4.5 detects errors 3`] = ` "59:2 - Type '{ unknownProperty: number; }' is not assignable to type 'Properties<0 | (string & {}), string & {}>'. Object literal may only specify known properties, and 'unknownProperty' does not exist in type 'Properties<0 | (string & {}), string & {}>'." `; exports[`Typescript 4.5 detects errors 4`] = `"63:11 - Type 'number' is not assignable to type 'string'."`; exports[`Typescript 4.5 detects errors 5`] = `"64:10 - Type 'number' is not assignable to type 'string'."`; exports[`Typescript 4.5 detects errors 6`] = ` "69:6 - Type '{}' is not assignable to type 'string & {}'. Type '{}' is not assignable to type 'string'." `; exports[`Typescript 4.5 detects errors 7`] = ` "74:10 - Type '"auto" | (string & {})' is not assignable to type '"auto"'. Type 'string & {}' is not assignable to type '"auto"'." `; exports[`Typescript 4.5 detects errors 8`] = `"81:6 - Type '1' is not assignable to type 'string | 0'."`; exports[`Typescript 4.5 detects errors 9`] = `"93:23 - This condition will always return 'false' since the types 'string | 0 | (string | 0)[]' and '1' have no overlap."`; exports[`Typescript 4.5 detects errors 10`] = `"107:25 - This condition will always return 'false' since the types 'string | 0' and '1' have no overlap."`; exports[`Typescript 4.5 detects errors 11`] = `"117:14 - Argument of type '1' is not assignable to parameter of type 'string | 0 | (string | 0)[]'."`; exports[`Typescript 4.5 detects errors 12`] = `"118:15 - Type '1' is not assignable to type 'string | 0'."`; exports[`Typescript 4.5 detects errors 13`] = `"131:23 - This condition will always return 'false' since the types 'string | 0 | (string | 0)[]' and '1' have no overlap."`; exports[`Typescript 4.5 detects errors 14`] = `"145:25 - This condition will always return 'false' since the types 'string | 0' and '1' have no overlap."`; exports[`Typescript 4.5 detects errors 15`] = `"155:34 - Argument of type '1' is not assignable to parameter of type 'Width<0 | (string & {})> | [Width<0 | (string & {})>]'."`; exports[`Typescript 4.5 detects errors 16`] = `"156:35 - Type '1' is not assignable to type 'Width<0 | (string & {})>'."`; frenic-csstype-47a4c33/__tests__/__snapshots__/dist.typescript-4.6.ts.snap000066400000000000000000000051371510660504500265530ustar00rootroot00000000000000// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing exports[`Typescript 4.6 detects errors 1`] = `"31:9 - Type 'undefined' is not assignable to type 'Clip'."`; exports[`Typescript 4.6 detects errors 2`] = ` "42:2 - Type 'readonly [undefined]' is not assignable to type 'Clip | readonly Clip[] | undefined'. Type 'readonly [undefined]' is not assignable to type 'readonly Clip[]'. Type 'undefined' is not assignable to type 'Clip'." `; exports[`Typescript 4.6 detects errors 3`] = ` "59:2 - Type '{ unknownProperty: number; }' is not assignable to type 'Properties<0 | (string & {}), string & {}>'. Object literal may only specify known properties, and 'unknownProperty' does not exist in type 'Properties<0 | (string & {}), string & {}>'." `; exports[`Typescript 4.6 detects errors 4`] = `"63:11 - Type 'number' is not assignable to type 'string'."`; exports[`Typescript 4.6 detects errors 5`] = `"64:10 - Type 'number' is not assignable to type 'string'."`; exports[`Typescript 4.6 detects errors 6`] = ` "69:6 - Type '{}' is not assignable to type 'string & {}'. Type '{}' is not assignable to type 'string'." `; exports[`Typescript 4.6 detects errors 7`] = ` "74:10 - Type '"auto" | (string & {})' is not assignable to type '"auto"'. Type 'string & {}' is not assignable to type '"auto"'." `; exports[`Typescript 4.6 detects errors 8`] = `"81:6 - Type '1' is not assignable to type 'string | 0'."`; exports[`Typescript 4.6 detects errors 9`] = `"93:23 - This condition will always return 'false' since the types 'string | 0 | (string | 0)[]' and '1' have no overlap."`; exports[`Typescript 4.6 detects errors 10`] = `"107:25 - This condition will always return 'false' since the types 'string | 0' and '1' have no overlap."`; exports[`Typescript 4.6 detects errors 11`] = `"117:14 - Argument of type '1' is not assignable to parameter of type 'string | 0 | (string | 0)[]'."`; exports[`Typescript 4.6 detects errors 12`] = `"118:15 - Type '1' is not assignable to type 'string | 0'."`; exports[`Typescript 4.6 detects errors 13`] = `"131:23 - This condition will always return 'false' since the types 'string | 0 | (string | 0)[]' and '1' have no overlap."`; exports[`Typescript 4.6 detects errors 14`] = `"145:25 - This condition will always return 'false' since the types 'string | 0' and '1' have no overlap."`; exports[`Typescript 4.6 detects errors 15`] = `"155:34 - Argument of type '1' is not assignable to parameter of type 'Width<0 | (string & {})> | [Width<0 | (string & {})>]'."`; exports[`Typescript 4.6 detects errors 16`] = `"156:35 - Type '1' is not assignable to type 'Width<0 | (string & {})>'."`; frenic-csstype-47a4c33/__tests__/__snapshots__/dist.typescript-4.7.ts.snap000066400000000000000000000051371510660504500265540ustar00rootroot00000000000000// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing exports[`Typescript 4.7 detects errors 1`] = `"31:9 - Type 'undefined' is not assignable to type 'Clip'."`; exports[`Typescript 4.7 detects errors 2`] = ` "42:2 - Type 'readonly [undefined]' is not assignable to type 'Clip | readonly Clip[] | undefined'. Type 'readonly [undefined]' is not assignable to type 'readonly Clip[]'. Type 'undefined' is not assignable to type 'Clip'." `; exports[`Typescript 4.7 detects errors 3`] = ` "59:2 - Type '{ unknownProperty: number; }' is not assignable to type 'Properties<0 | (string & {}), string & {}>'. Object literal may only specify known properties, and 'unknownProperty' does not exist in type 'Properties<0 | (string & {}), string & {}>'." `; exports[`Typescript 4.7 detects errors 4`] = `"63:11 - Type 'number' is not assignable to type 'string'."`; exports[`Typescript 4.7 detects errors 5`] = `"64:10 - Type 'number' is not assignable to type 'string'."`; exports[`Typescript 4.7 detects errors 6`] = ` "69:6 - Type '{}' is not assignable to type 'string & {}'. Type '{}' is not assignable to type 'string'." `; exports[`Typescript 4.7 detects errors 7`] = ` "74:10 - Type '"auto" | (string & {})' is not assignable to type '"auto"'. Type 'string & {}' is not assignable to type '"auto"'." `; exports[`Typescript 4.7 detects errors 8`] = `"81:6 - Type '1' is not assignable to type 'string | 0'."`; exports[`Typescript 4.7 detects errors 9`] = `"93:23 - This condition will always return 'false' since the types 'string | 0 | (string | 0)[]' and '1' have no overlap."`; exports[`Typescript 4.7 detects errors 10`] = `"107:25 - This condition will always return 'false' since the types 'string | 0' and '1' have no overlap."`; exports[`Typescript 4.7 detects errors 11`] = `"117:14 - Argument of type '1' is not assignable to parameter of type 'string | 0 | (string | 0)[]'."`; exports[`Typescript 4.7 detects errors 12`] = `"118:15 - Type '1' is not assignable to type 'string | 0'."`; exports[`Typescript 4.7 detects errors 13`] = `"131:23 - This condition will always return 'false' since the types 'string | 0 | (string | 0)[]' and '1' have no overlap."`; exports[`Typescript 4.7 detects errors 14`] = `"145:25 - This condition will always return 'false' since the types 'string | 0' and '1' have no overlap."`; exports[`Typescript 4.7 detects errors 15`] = `"155:34 - Argument of type '1' is not assignable to parameter of type 'Width<0 | (string & {})> | [Width<0 | (string & {})>]'."`; exports[`Typescript 4.7 detects errors 16`] = `"156:35 - Type '1' is not assignable to type 'Width<0 | (string & {})>'."`; frenic-csstype-47a4c33/__tests__/__snapshots__/dist.typescript-4.8.ts.snap000066400000000000000000000051471510660504500265560ustar00rootroot00000000000000// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing exports[`Typescript 4.8 detects errors 1`] = `"31:9 - Type 'undefined' is not assignable to type 'string'."`; exports[`Typescript 4.8 detects errors 2`] = ` "42:2 - Type 'readonly [undefined]' is not assignable to type 'readonly string[] | Clip | undefined'. Type 'readonly [undefined]' is not assignable to type 'readonly string[]'. Type 'undefined' is not assignable to type 'string'." `; exports[`Typescript 4.8 detects errors 3`] = ` "59:2 - Type '{ unknownProperty: number; }' is not assignable to type 'Properties<0 | (string & {}), string & {}>'. Object literal may only specify known properties, and 'unknownProperty' does not exist in type 'Properties<0 | (string & {}), string & {}>'." `; exports[`Typescript 4.8 detects errors 4`] = `"63:11 - Type 'number' is not assignable to type 'string'."`; exports[`Typescript 4.8 detects errors 5`] = `"64:10 - Type 'number' is not assignable to type 'string'."`; exports[`Typescript 4.8 detects errors 6`] = ` "69:6 - Type '{}' is not assignable to type 'string & {}'. Type '{}' is not assignable to type 'string'." `; exports[`Typescript 4.8 detects errors 7`] = ` "74:10 - Type '"auto" | (string & {})' is not assignable to type '"auto"'. Type 'string & {}' is not assignable to type '"auto"'." `; exports[`Typescript 4.8 detects errors 8`] = `"81:6 - Type '1' is not assignable to type 'string | 0'."`; exports[`Typescript 4.8 detects errors 9`] = `"93:23 - This condition will always return 'false' since the types 'string | 0 | (string | 0)[]' and '1' have no overlap."`; exports[`Typescript 4.8 detects errors 10`] = `"107:25 - This condition will always return 'false' since the types 'string | 0' and '1' have no overlap."`; exports[`Typescript 4.8 detects errors 11`] = `"117:14 - Argument of type '1' is not assignable to parameter of type 'string | 0 | (string | 0)[]'."`; exports[`Typescript 4.8 detects errors 12`] = `"118:15 - Type '1' is not assignable to type 'string | 0'."`; exports[`Typescript 4.8 detects errors 13`] = `"131:23 - This condition will always return 'false' since the types 'string | 0 | (string | 0)[]' and '1' have no overlap."`; exports[`Typescript 4.8 detects errors 14`] = `"145:25 - This condition will always return 'false' since the types 'string | 0' and '1' have no overlap."`; exports[`Typescript 4.8 detects errors 15`] = `"155:34 - Argument of type '1' is not assignable to parameter of type 'Width<0 | (string & {})> | [Width<0 | (string & {})>]'."`; exports[`Typescript 4.8 detects errors 16`] = `"156:35 - Type '1' is not assignable to type 'Width<0 | (string & {})>'."`; frenic-csstype-47a4c33/__tests__/__snapshots__/dist.typescript-4.9.ts.snap000066400000000000000000000051671510660504500265610ustar00rootroot00000000000000// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing exports[`Typescript 4.9 detects errors 1`] = `"31:9 - Type 'undefined' is not assignable to type 'string'."`; exports[`Typescript 4.9 detects errors 2`] = ` "42:2 - Type 'readonly [undefined]' is not assignable to type 'readonly string[] | Clip | undefined'. Type 'readonly [undefined]' is not assignable to type 'readonly string[]'. Type 'undefined' is not assignable to type 'string'." `; exports[`Typescript 4.9 detects errors 3`] = ` "59:2 - Type '{ unknownProperty: number; }' is not assignable to type 'Properties<0 | (string & {}), string & {}>'. Object literal may only specify known properties, and 'unknownProperty' does not exist in type 'Properties<0 | (string & {}), string & {}>'." `; exports[`Typescript 4.9 detects errors 4`] = `"63:11 - Type 'number' is not assignable to type 'string'."`; exports[`Typescript 4.9 detects errors 5`] = `"64:10 - Type 'number' is not assignable to type 'string'."`; exports[`Typescript 4.9 detects errors 6`] = ` "69:6 - Type '{}' is not assignable to type 'string & {}'. Type '{}' is not assignable to type 'string'." `; exports[`Typescript 4.9 detects errors 7`] = ` "74:10 - Type '"auto" | (string & {})' is not assignable to type '"auto"'. Type 'string & {}' is not assignable to type '"auto"'." `; exports[`Typescript 4.9 detects errors 8`] = `"81:6 - Type '1' is not assignable to type 'string | 0'."`; exports[`Typescript 4.9 detects errors 9`] = `"93:23 - This comparison appears to be unintentional because the types 'string | 0 | (string | 0)[]' and '1' have no overlap."`; exports[`Typescript 4.9 detects errors 10`] = `"107:25 - This comparison appears to be unintentional because the types 'string | 0' and '1' have no overlap."`; exports[`Typescript 4.9 detects errors 11`] = `"117:14 - Argument of type '1' is not assignable to parameter of type 'string | 0 | (string | 0)[]'."`; exports[`Typescript 4.9 detects errors 12`] = `"118:15 - Type '1' is not assignable to type 'string | 0'."`; exports[`Typescript 4.9 detects errors 13`] = `"131:23 - This comparison appears to be unintentional because the types 'string | 0 | (string | 0)[]' and '1' have no overlap."`; exports[`Typescript 4.9 detects errors 14`] = `"145:25 - This comparison appears to be unintentional because the types 'string | 0' and '1' have no overlap."`; exports[`Typescript 4.9 detects errors 15`] = `"155:34 - Argument of type '1' is not assignable to parameter of type 'Width<0 | (string & {})> | [Width<0 | (string & {})>]'."`; exports[`Typescript 4.9 detects errors 16`] = `"156:35 - Type '1' is not assignable to type 'Width<0 | (string & {})>'."`; frenic-csstype-47a4c33/__tests__/__snapshots__/dist.typescript-5.0.ts.snap000066400000000000000000000051671510660504500265510ustar00rootroot00000000000000// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing exports[`Typescript 5.0 detects errors 1`] = `"31:9 - Type 'undefined' is not assignable to type 'string'."`; exports[`Typescript 5.0 detects errors 2`] = ` "42:2 - Type 'readonly [undefined]' is not assignable to type 'readonly string[] | Clip | undefined'. Type 'readonly [undefined]' is not assignable to type 'readonly string[]'. Type 'undefined' is not assignable to type 'string'." `; exports[`Typescript 5.0 detects errors 3`] = ` "59:2 - Type '{ unknownProperty: number; }' is not assignable to type 'Properties<0 | (string & {}), string & {}>'. Object literal may only specify known properties, and 'unknownProperty' does not exist in type 'Properties<0 | (string & {}), string & {}>'." `; exports[`Typescript 5.0 detects errors 4`] = `"63:11 - Type 'number' is not assignable to type 'string'."`; exports[`Typescript 5.0 detects errors 5`] = `"64:10 - Type 'number' is not assignable to type 'string'."`; exports[`Typescript 5.0 detects errors 6`] = ` "69:6 - Type '{}' is not assignable to type 'string & {}'. Type '{}' is not assignable to type 'string'." `; exports[`Typescript 5.0 detects errors 7`] = ` "74:10 - Type '"auto" | (string & {})' is not assignable to type '"auto"'. Type 'string & {}' is not assignable to type '"auto"'." `; exports[`Typescript 5.0 detects errors 8`] = `"81:6 - Type '1' is not assignable to type 'string | 0'."`; exports[`Typescript 5.0 detects errors 9`] = `"93:23 - This comparison appears to be unintentional because the types 'string | 0 | (string | 0)[]' and '1' have no overlap."`; exports[`Typescript 5.0 detects errors 10`] = `"107:25 - This comparison appears to be unintentional because the types 'string | 0' and '1' have no overlap."`; exports[`Typescript 5.0 detects errors 11`] = `"117:14 - Argument of type '1' is not assignable to parameter of type 'string | 0 | (string | 0)[]'."`; exports[`Typescript 5.0 detects errors 12`] = `"118:15 - Type '1' is not assignable to type 'string | 0'."`; exports[`Typescript 5.0 detects errors 13`] = `"131:23 - This comparison appears to be unintentional because the types 'string | 0 | (string | 0)[]' and '1' have no overlap."`; exports[`Typescript 5.0 detects errors 14`] = `"145:25 - This comparison appears to be unintentional because the types 'string | 0' and '1' have no overlap."`; exports[`Typescript 5.0 detects errors 15`] = `"155:34 - Argument of type '1' is not assignable to parameter of type 'Width<0 | (string & {})> | [Width<0 | (string & {})>]'."`; exports[`Typescript 5.0 detects errors 16`] = `"156:35 - Type '1' is not assignable to type 'Width<0 | (string & {})>'."`; frenic-csstype-47a4c33/__tests__/__snapshots__/dist.typescript-5.1.ts.snap000066400000000000000000000051711510660504500265450ustar00rootroot00000000000000// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing exports[`Typescript 5.1 detects errors 1`] = `"31:9 - Type 'undefined' is not assignable to type 'string'."`; exports[`Typescript 5.1 detects errors 2`] = ` "42:2 - Type 'readonly [undefined]' is not assignable to type 'readonly string[] | Clip | undefined'. Type 'readonly [undefined]' is not assignable to type 'readonly string[]'. Type 'undefined' is not assignable to type 'string'." `; exports[`Typescript 5.1 detects errors 3`] = ` "59:2 - Type '{ unknownProperty: number; }' is not assignable to type 'Properties<0 | (string & {}), string & {}>'. Object literal may only specify known properties, and 'unknownProperty' does not exist in type 'Properties<0 | (string & {}), string & {}>'." `; exports[`Typescript 5.1 detects errors 4`] = `"63:11 - Type 'number' is not assignable to type 'string'."`; exports[`Typescript 5.1 detects errors 5`] = `"64:10 - Type 'number' is not assignable to type 'string'."`; exports[`Typescript 5.1 detects errors 6`] = ` "69:6 - Type '{}' is not assignable to type 'string & {}'. Type '{}' is not assignable to type 'string'." `; exports[`Typescript 5.1 detects errors 7`] = ` "74:10 - Type '"auto" | (string & {})' is not assignable to type '"auto"'. Type 'string & {}' is not assignable to type '"auto"'." `; exports[`Typescript 5.1 detects errors 8`] = `"81:6 - Type '1' is not assignable to type 'string | 0'."`; exports[`Typescript 5.1 detects errors 9`] = `"93:23 - This comparison appears to be unintentional because the types 'string | 0 | (string | 0)[]' and '1' have no overlap."`; exports[`Typescript 5.1 detects errors 10`] = `"107:25 - This comparison appears to be unintentional because the types 'string | 0' and '1' have no overlap."`; exports[`Typescript 5.1 detects errors 11`] = `"117:14 - Argument of type '1' is not assignable to parameter of type 'string | 0 | (string | 0)[]'."`; exports[`Typescript 5.1 detects errors 12`] = `"118:15 - Type '1' is not assignable to type 'string | 0'."`; exports[`Typescript 5.1 detects errors 13`] = `"131:23 - This comparison appears to be unintentional because the types 'string | 0 | (string | 0)[]' and '1' have no overlap."`; exports[`Typescript 5.1 detects errors 14`] = `"145:25 - This comparison appears to be unintentional because the types 'string | 0' and '1' have no overlap."`; exports[`Typescript 5.1 detects errors 15`] = `"155:34 - Argument of type '1' is not assignable to parameter of type 'Width<0 | (string & {})> | [Width<0 | (string & {})>]'."`; exports[`Typescript 5.1 detects errors 16`] = `"156:35 - Type '1' is not assignable to type 'string | 0 | (string & {})'."`; frenic-csstype-47a4c33/__tests__/__snapshots__/dist.typescript-5.2.ts.snap000066400000000000000000000047101510660504500265440ustar00rootroot00000000000000// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing exports[`Typescript 5.2 detects errors 1`] = `"31:9 - Type 'undefined' is not assignable to type 'string'."`; exports[`Typescript 5.2 detects errors 2`] = `"42:9 - Type 'undefined' is not assignable to type 'string'."`; exports[`Typescript 5.2 detects errors 3`] = ` "59:2 - Type '{ unknownProperty: number; }' is not assignable to type 'Properties<0 | (string & {}), string & {}>'. Object literal may only specify known properties, and 'unknownProperty' does not exist in type 'Properties<0 | (string & {}), string & {}>'." `; exports[`Typescript 5.2 detects errors 4`] = `"63:11 - Type 'number' is not assignable to type 'string'."`; exports[`Typescript 5.2 detects errors 5`] = `"64:10 - Type 'number' is not assignable to type 'string'."`; exports[`Typescript 5.2 detects errors 6`] = ` "69:6 - Type '{}' is not assignable to type 'string & {}'. Type '{}' is not assignable to type 'string'." `; exports[`Typescript 5.2 detects errors 7`] = ` "74:10 - Type '"auto" | (string & {})' is not assignable to type '"auto"'. Type 'string & {}' is not assignable to type '"auto"'." `; exports[`Typescript 5.2 detects errors 8`] = `"81:6 - Type '1' is not assignable to type 'string | 0'."`; exports[`Typescript 5.2 detects errors 9`] = `"93:23 - This comparison appears to be unintentional because the types 'string | 0 | (string | 0)[]' and '1' have no overlap."`; exports[`Typescript 5.2 detects errors 10`] = `"107:25 - This comparison appears to be unintentional because the types 'string | 0' and '1' have no overlap."`; exports[`Typescript 5.2 detects errors 11`] = `"117:14 - Argument of type '1' is not assignable to parameter of type 'string | 0 | (string | 0)[]'."`; exports[`Typescript 5.2 detects errors 12`] = `"118:15 - Type '1' is not assignable to type 'string | 0'."`; exports[`Typescript 5.2 detects errors 13`] = `"131:23 - This comparison appears to be unintentional because the types 'string | 0 | (string | 0)[]' and '1' have no overlap."`; exports[`Typescript 5.2 detects errors 14`] = `"145:25 - This comparison appears to be unintentional because the types 'string | 0' and '1' have no overlap."`; exports[`Typescript 5.2 detects errors 15`] = `"155:34 - Argument of type '1' is not assignable to parameter of type 'Width<0 | (string & {})> | [Width<0 | (string & {})>]'."`; exports[`Typescript 5.2 detects errors 16`] = `"156:35 - Type '1' is not assignable to type 'string | 0 | (string & {})'."`; frenic-csstype-47a4c33/__tests__/__snapshots__/dist.typescript-5.3.ts.snap000066400000000000000000000045301510660504500265450ustar00rootroot00000000000000// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing exports[`Typescript 5.3 detects errors 1`] = `"31:9 - Type 'undefined' is not assignable to type 'string'."`; exports[`Typescript 5.3 detects errors 2`] = `"42:9 - Type 'undefined' is not assignable to type 'string'."`; exports[`Typescript 5.3 detects errors 3`] = `"59:2 - Object literal may only specify known properties, and 'unknownProperty' does not exist in type 'Properties<0 | (string & {}), string & {}>'."`; exports[`Typescript 5.3 detects errors 4`] = `"63:11 - Type 'number' is not assignable to type 'string'."`; exports[`Typescript 5.3 detects errors 5`] = `"64:10 - Type 'number' is not assignable to type 'string'."`; exports[`Typescript 5.3 detects errors 6`] = ` "69:6 - Type '{}' is not assignable to type 'string & {}'. Type '{}' is not assignable to type 'string'." `; exports[`Typescript 5.3 detects errors 7`] = ` "74:10 - Type '"auto" | (string & {})' is not assignable to type '"auto"'. Type 'string & {}' is not assignable to type '"auto"'." `; exports[`Typescript 5.3 detects errors 8`] = `"81:6 - Type '1' is not assignable to type 'string | 0'."`; exports[`Typescript 5.3 detects errors 9`] = `"93:23 - This comparison appears to be unintentional because the types 'string | 0 | (string | 0)[]' and '1' have no overlap."`; exports[`Typescript 5.3 detects errors 10`] = `"107:25 - This comparison appears to be unintentional because the types 'string | 0' and '1' have no overlap."`; exports[`Typescript 5.3 detects errors 11`] = `"117:14 - Argument of type '1' is not assignable to parameter of type 'string | 0 | (string | 0)[]'."`; exports[`Typescript 5.3 detects errors 12`] = `"118:15 - Type '1' is not assignable to type 'string | 0'."`; exports[`Typescript 5.3 detects errors 13`] = `"131:23 - This comparison appears to be unintentional because the types 'string | 0 | (string | 0)[]' and '1' have no overlap."`; exports[`Typescript 5.3 detects errors 14`] = `"145:25 - This comparison appears to be unintentional because the types 'string | 0' and '1' have no overlap."`; exports[`Typescript 5.3 detects errors 15`] = `"155:34 - Argument of type '1' is not assignable to parameter of type 'Width<0 | (string & {})> | [Width<0 | (string & {})>]'."`; exports[`Typescript 5.3 detects errors 16`] = `"156:35 - Type '1' is not assignable to type 'string | 0 | (string & {})'."`; frenic-csstype-47a4c33/__tests__/__snapshots__/dist.typescript-5.4.ts.snap000066400000000000000000000045301510660504500265460ustar00rootroot00000000000000// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing exports[`Typescript 5.4 detects errors 1`] = `"31:9 - Type 'undefined' is not assignable to type 'string'."`; exports[`Typescript 5.4 detects errors 2`] = `"42:9 - Type 'undefined' is not assignable to type 'string'."`; exports[`Typescript 5.4 detects errors 3`] = `"59:2 - Object literal may only specify known properties, and 'unknownProperty' does not exist in type 'Properties<0 | (string & {}), string & {}>'."`; exports[`Typescript 5.4 detects errors 4`] = `"63:11 - Type 'number' is not assignable to type 'string'."`; exports[`Typescript 5.4 detects errors 5`] = `"64:10 - Type 'number' is not assignable to type 'string'."`; exports[`Typescript 5.4 detects errors 6`] = ` "69:6 - Type '{}' is not assignable to type 'string & {}'. Type '{}' is not assignable to type 'string'." `; exports[`Typescript 5.4 detects errors 7`] = ` "74:10 - Type '"auto" | (string & {})' is not assignable to type '"auto"'. Type 'string & {}' is not assignable to type '"auto"'." `; exports[`Typescript 5.4 detects errors 8`] = `"81:6 - Type '1' is not assignable to type 'string | 0'."`; exports[`Typescript 5.4 detects errors 9`] = `"93:23 - This comparison appears to be unintentional because the types 'string | 0 | (string | 0)[]' and '1' have no overlap."`; exports[`Typescript 5.4 detects errors 10`] = `"107:25 - This comparison appears to be unintentional because the types 'string | 0' and '1' have no overlap."`; exports[`Typescript 5.4 detects errors 11`] = `"117:14 - Argument of type '1' is not assignable to parameter of type 'string | 0 | (string | 0)[]'."`; exports[`Typescript 5.4 detects errors 12`] = `"118:15 - Type '1' is not assignable to type 'string | 0'."`; exports[`Typescript 5.4 detects errors 13`] = `"131:23 - This comparison appears to be unintentional because the types 'string | 0 | (string | 0)[]' and '1' have no overlap."`; exports[`Typescript 5.4 detects errors 14`] = `"145:25 - This comparison appears to be unintentional because the types 'string | 0' and '1' have no overlap."`; exports[`Typescript 5.4 detects errors 15`] = `"155:34 - Argument of type '1' is not assignable to parameter of type 'Width<0 | (string & {})> | [Width<0 | (string & {})>]'."`; exports[`Typescript 5.4 detects errors 16`] = `"156:35 - Type '1' is not assignable to type 'string | 0 | (string & {})'."`; frenic-csstype-47a4c33/__tests__/__snapshots__/dist.typescript-5.5.ts.snap000066400000000000000000000045301510660504500265470ustar00rootroot00000000000000// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing exports[`Typescript 5.5 detects errors 1`] = `"31:9 - Type 'undefined' is not assignable to type 'string'."`; exports[`Typescript 5.5 detects errors 2`] = `"42:9 - Type 'undefined' is not assignable to type 'string'."`; exports[`Typescript 5.5 detects errors 3`] = `"59:2 - Object literal may only specify known properties, and 'unknownProperty' does not exist in type 'Properties<0 | (string & {}), string & {}>'."`; exports[`Typescript 5.5 detects errors 4`] = `"63:11 - Type 'number' is not assignable to type 'string'."`; exports[`Typescript 5.5 detects errors 5`] = `"64:10 - Type 'number' is not assignable to type 'string'."`; exports[`Typescript 5.5 detects errors 6`] = ` "69:6 - Type '{}' is not assignable to type 'string & {}'. Type '{}' is not assignable to type 'string'." `; exports[`Typescript 5.5 detects errors 7`] = ` "74:10 - Type '"auto" | (string & {})' is not assignable to type '"auto"'. Type 'string & {}' is not assignable to type '"auto"'." `; exports[`Typescript 5.5 detects errors 8`] = `"81:6 - Type '1' is not assignable to type 'string | 0'."`; exports[`Typescript 5.5 detects errors 9`] = `"93:23 - This comparison appears to be unintentional because the types 'string | 0 | (string | 0)[]' and '1' have no overlap."`; exports[`Typescript 5.5 detects errors 10`] = `"107:25 - This comparison appears to be unintentional because the types 'string | 0' and '1' have no overlap."`; exports[`Typescript 5.5 detects errors 11`] = `"117:14 - Argument of type '1' is not assignable to parameter of type 'string | 0 | (string | 0)[]'."`; exports[`Typescript 5.5 detects errors 12`] = `"118:15 - Type '1' is not assignable to type 'string | 0'."`; exports[`Typescript 5.5 detects errors 13`] = `"131:23 - This comparison appears to be unintentional because the types 'string | 0 | (string | 0)[]' and '1' have no overlap."`; exports[`Typescript 5.5 detects errors 14`] = `"145:25 - This comparison appears to be unintentional because the types 'string | 0' and '1' have no overlap."`; exports[`Typescript 5.5 detects errors 15`] = `"155:34 - Argument of type '1' is not assignable to parameter of type 'Width<0 | (string & {})> | [Width<0 | (string & {})>]'."`; exports[`Typescript 5.5 detects errors 16`] = `"156:35 - Type '1' is not assignable to type 'string | 0 | (string & {})'."`; frenic-csstype-47a4c33/__tests__/__snapshots__/dist.typescript-5.6.ts.snap000066400000000000000000000045301510660504500265500ustar00rootroot00000000000000// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing exports[`Typescript 5.6 detects errors 1`] = `"31:9 - Type 'undefined' is not assignable to type 'string'."`; exports[`Typescript 5.6 detects errors 2`] = `"42:9 - Type 'undefined' is not assignable to type 'string'."`; exports[`Typescript 5.6 detects errors 3`] = `"59:2 - Object literal may only specify known properties, and 'unknownProperty' does not exist in type 'Properties<0 | (string & {}), string & {}>'."`; exports[`Typescript 5.6 detects errors 4`] = `"63:11 - Type 'number' is not assignable to type 'string'."`; exports[`Typescript 5.6 detects errors 5`] = `"64:10 - Type 'number' is not assignable to type 'string'."`; exports[`Typescript 5.6 detects errors 6`] = ` "69:6 - Type '{}' is not assignable to type 'string & {}'. Type '{}' is not assignable to type 'string'." `; exports[`Typescript 5.6 detects errors 7`] = ` "74:10 - Type '"auto" | (string & {})' is not assignable to type '"auto"'. Type 'string & {}' is not assignable to type '"auto"'." `; exports[`Typescript 5.6 detects errors 8`] = `"81:6 - Type '1' is not assignable to type 'string | 0'."`; exports[`Typescript 5.6 detects errors 9`] = `"93:23 - This comparison appears to be unintentional because the types 'string | 0 | (string | 0)[]' and '1' have no overlap."`; exports[`Typescript 5.6 detects errors 10`] = `"107:25 - This comparison appears to be unintentional because the types 'string | 0' and '1' have no overlap."`; exports[`Typescript 5.6 detects errors 11`] = `"117:14 - Argument of type '1' is not assignable to parameter of type 'string | 0 | (string | 0)[]'."`; exports[`Typescript 5.6 detects errors 12`] = `"118:15 - Type '1' is not assignable to type 'string | 0'."`; exports[`Typescript 5.6 detects errors 13`] = `"131:23 - This comparison appears to be unintentional because the types 'string | 0 | (string | 0)[]' and '1' have no overlap."`; exports[`Typescript 5.6 detects errors 14`] = `"145:25 - This comparison appears to be unintentional because the types 'string | 0' and '1' have no overlap."`; exports[`Typescript 5.6 detects errors 15`] = `"155:34 - Argument of type '1' is not assignable to parameter of type 'Width<0 | (string & {})> | [Width<0 | (string & {})>]'."`; exports[`Typescript 5.6 detects errors 16`] = `"156:35 - Type '1' is not assignable to type 'string | 0 | (string & {})'."`; frenic-csstype-47a4c33/__tests__/__snapshots__/dist.typescript-5.7.ts.snap000066400000000000000000000045301510660504500265510ustar00rootroot00000000000000// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing exports[`Typescript 5.7 detects errors 1`] = `"31:9 - Type 'undefined' is not assignable to type 'string'."`; exports[`Typescript 5.7 detects errors 2`] = `"42:9 - Type 'undefined' is not assignable to type 'string'."`; exports[`Typescript 5.7 detects errors 3`] = `"59:2 - Object literal may only specify known properties, and 'unknownProperty' does not exist in type 'Properties<0 | (string & {}), string & {}>'."`; exports[`Typescript 5.7 detects errors 4`] = `"63:11 - Type 'number' is not assignable to type 'string'."`; exports[`Typescript 5.7 detects errors 5`] = `"64:10 - Type 'number' is not assignable to type 'string'."`; exports[`Typescript 5.7 detects errors 6`] = ` "69:6 - Type '{}' is not assignable to type 'string & {}'. Type '{}' is not assignable to type 'string'." `; exports[`Typescript 5.7 detects errors 7`] = ` "74:10 - Type '"auto" | (string & {})' is not assignable to type '"auto"'. Type 'string & {}' is not assignable to type '"auto"'." `; exports[`Typescript 5.7 detects errors 8`] = `"81:6 - Type '1' is not assignable to type 'string | 0'."`; exports[`Typescript 5.7 detects errors 9`] = `"93:23 - This comparison appears to be unintentional because the types 'string | 0 | (string | 0)[]' and '1' have no overlap."`; exports[`Typescript 5.7 detects errors 10`] = `"107:25 - This comparison appears to be unintentional because the types 'string | 0' and '1' have no overlap."`; exports[`Typescript 5.7 detects errors 11`] = `"117:14 - Argument of type '1' is not assignable to parameter of type 'string | 0 | (string | 0)[]'."`; exports[`Typescript 5.7 detects errors 12`] = `"118:15 - Type '1' is not assignable to type 'string | 0'."`; exports[`Typescript 5.7 detects errors 13`] = `"131:23 - This comparison appears to be unintentional because the types 'string | 0 | (string | 0)[]' and '1' have no overlap."`; exports[`Typescript 5.7 detects errors 14`] = `"145:25 - This comparison appears to be unintentional because the types 'string | 0' and '1' have no overlap."`; exports[`Typescript 5.7 detects errors 15`] = `"155:34 - Argument of type '1' is not assignable to parameter of type 'Width<0 | (string & {})> | [Width<0 | (string & {})>]'."`; exports[`Typescript 5.7 detects errors 16`] = `"156:35 - Type '1' is not assignable to type 'string | 0 | (string & {})'."`; frenic-csstype-47a4c33/__tests__/__snapshots__/dist.typescript-5.8.ts.snap000066400000000000000000000045301510660504500265520ustar00rootroot00000000000000// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing exports[`Typescript 5.8 detects errors 1`] = `"31:9 - Type 'undefined' is not assignable to type 'string'."`; exports[`Typescript 5.8 detects errors 2`] = `"42:9 - Type 'undefined' is not assignable to type 'string'."`; exports[`Typescript 5.8 detects errors 3`] = `"59:2 - Object literal may only specify known properties, and 'unknownProperty' does not exist in type 'Properties<0 | (string & {}), string & {}>'."`; exports[`Typescript 5.8 detects errors 4`] = `"63:11 - Type 'number' is not assignable to type 'string'."`; exports[`Typescript 5.8 detects errors 5`] = `"64:10 - Type 'number' is not assignable to type 'string'."`; exports[`Typescript 5.8 detects errors 6`] = ` "69:6 - Type '{}' is not assignable to type 'string & {}'. Type '{}' is not assignable to type 'string'." `; exports[`Typescript 5.8 detects errors 7`] = ` "74:10 - Type '"auto" | (string & {})' is not assignable to type '"auto"'. Type 'string & {}' is not assignable to type '"auto"'." `; exports[`Typescript 5.8 detects errors 8`] = `"81:6 - Type '1' is not assignable to type 'string | 0'."`; exports[`Typescript 5.8 detects errors 9`] = `"93:23 - This comparison appears to be unintentional because the types 'string | 0 | (string | 0)[]' and '1' have no overlap."`; exports[`Typescript 5.8 detects errors 10`] = `"107:25 - This comparison appears to be unintentional because the types 'string | 0' and '1' have no overlap."`; exports[`Typescript 5.8 detects errors 11`] = `"117:14 - Argument of type '1' is not assignable to parameter of type 'string | 0 | (string | 0)[]'."`; exports[`Typescript 5.8 detects errors 12`] = `"118:15 - Type '1' is not assignable to type 'string | 0'."`; exports[`Typescript 5.8 detects errors 13`] = `"131:23 - This comparison appears to be unintentional because the types 'string | 0 | (string | 0)[]' and '1' have no overlap."`; exports[`Typescript 5.8 detects errors 14`] = `"145:25 - This comparison appears to be unintentional because the types 'string | 0' and '1' have no overlap."`; exports[`Typescript 5.8 detects errors 15`] = `"155:34 - Argument of type '1' is not assignable to parameter of type 'Width<0 | (string & {})> | [Width<0 | (string & {})>]'."`; exports[`Typescript 5.8 detects errors 16`] = `"156:35 - Type '1' is not assignable to type 'string | 0 | (string & {})'."`; frenic-csstype-47a4c33/__tests__/__snapshots__/dist.typescript-latest.ts.snap000066400000000000000000000045301510660504500275340ustar00rootroot00000000000000// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing exports[`Typescript 5.0 detects errors 1`] = `"31:9 - Type 'undefined' is not assignable to type 'string'."`; exports[`Typescript 5.0 detects errors 2`] = `"42:9 - Type 'undefined' is not assignable to type 'string'."`; exports[`Typescript 5.0 detects errors 3`] = `"59:2 - Object literal may only specify known properties, and 'unknownProperty' does not exist in type 'Properties<0 | (string & {}), string & {}>'."`; exports[`Typescript 5.0 detects errors 4`] = `"63:11 - Type 'number' is not assignable to type 'string'."`; exports[`Typescript 5.0 detects errors 5`] = `"64:10 - Type 'number' is not assignable to type 'string'."`; exports[`Typescript 5.0 detects errors 6`] = ` "69:6 - Type '{}' is not assignable to type 'string & {}'. Type '{}' is not assignable to type 'string'." `; exports[`Typescript 5.0 detects errors 7`] = ` "74:10 - Type '"auto" | (string & {})' is not assignable to type '"auto"'. Type 'string & {}' is not assignable to type '"auto"'." `; exports[`Typescript 5.0 detects errors 8`] = `"81:6 - Type '1' is not assignable to type 'string | 0'."`; exports[`Typescript 5.0 detects errors 9`] = `"93:23 - This comparison appears to be unintentional because the types 'string | 0 | (string | 0)[]' and '1' have no overlap."`; exports[`Typescript 5.0 detects errors 10`] = `"107:25 - This comparison appears to be unintentional because the types 'string | 0' and '1' have no overlap."`; exports[`Typescript 5.0 detects errors 11`] = `"117:14 - Argument of type '1' is not assignable to parameter of type 'string | 0 | (string | 0)[]'."`; exports[`Typescript 5.0 detects errors 12`] = `"118:15 - Type '1' is not assignable to type 'string | 0'."`; exports[`Typescript 5.0 detects errors 13`] = `"131:23 - This comparison appears to be unintentional because the types 'string | 0 | (string | 0)[]' and '1' have no overlap."`; exports[`Typescript 5.0 detects errors 14`] = `"145:25 - This comparison appears to be unintentional because the types 'string | 0' and '1' have no overlap."`; exports[`Typescript 5.0 detects errors 15`] = `"155:34 - Argument of type '1' is not assignable to parameter of type 'Width<0 | (string & {})> | [Width<0 | (string & {})>]'."`; exports[`Typescript 5.0 detects errors 16`] = `"156:35 - Type '1' is not assignable to type 'string | 0 | (string & {})'."`; frenic-csstype-47a4c33/__tests__/dist.flow.ts000066400000000000000000000025551510660504500212320ustar00rootroot00000000000000import { spawnSync } from 'child_process'; import * as path from 'path'; // eslint-disable-next-line @typescript-eslint/no-require-imports const flow: string = require('flow-bin'); test('it detects errors', () => { const { stdout: output } = spawnSync( flow, ['check', path.resolve(__dirname, '__fixtures__/typecheck.js'), '--json'], { stdio: 'pipe', encoding: 'utf8', }, ); const { errors }: IFlowOutput = JSON.parse(output); expect(errors.length).toBe(4); for (const error of errors) { expect(message(error)).toMatchSnapshot(); } }); function message(error: IError) { const { loc: { start: { line, column }, }, descr, } = error.message[0]; return `${line}:${column} - ${descr}`; } interface IExtra { message: IMessage[]; } interface IPosition { line: number; column: number; offset: number; } interface ILocation { source: string; type: string; start: IPosition; end: IPosition; } interface IMessage { context: string; descr: string; type: string; loc: ILocation; path: string; line: number; endline: number; start: number; end: number; } interface IError { kind: string; level: string; suppressions: unknown[]; extra: IExtra[]; message: IMessage[]; } interface IFlowOutput { flowVersion: string; jsonVersion: string; errors: IError[]; passed: boolean; } frenic-csstype-47a4c33/__tests__/dist.typescript-3.5.ts000066400000000000000000000015431510660504500227700ustar00rootroot00000000000000import * as path from 'path'; import * as ts from 'typescript3.5'; import { removeAbsolutePaths, COMPILER_OPTIONS } from './typescript-utils'; describe('Typescript 3.5', () => { it('detects errors', async () => { const program = ts.createProgram([path.resolve(__dirname, '__fixtures__/typecheck.ts')], COMPILER_OPTIONS); const diagnostics = ts.getPreEmitDiagnostics(program); const errors = diagnostics.map(diagnostic => { const { line, character } = diagnostic.file!.getLineAndCharacterOfPosition(diagnostic.start!); return `${line}:${character} - ${removeAbsolutePaths( ts.flattenDiagnosticMessageText(diagnostic.messageText, '\n'), )}`; }); expect(Number(ts.versionMajorMinor)).toBe(3.5); expect(errors.length).toBe(16); for (const error of errors) { expect(error).toMatchSnapshot(); } }); }); frenic-csstype-47a4c33/__tests__/dist.typescript-3.6.ts000066400000000000000000000015431510660504500227710ustar00rootroot00000000000000import * as path from 'path'; import * as ts from 'typescript3.6'; import { removeAbsolutePaths, COMPILER_OPTIONS } from './typescript-utils'; describe('Typescript 3.6', () => { it('detects errors', async () => { const program = ts.createProgram([path.resolve(__dirname, '__fixtures__/typecheck.ts')], COMPILER_OPTIONS); const diagnostics = ts.getPreEmitDiagnostics(program); const errors = diagnostics.map(diagnostic => { const { line, character } = diagnostic.file!.getLineAndCharacterOfPosition(diagnostic.start!); return `${line}:${character} - ${removeAbsolutePaths( ts.flattenDiagnosticMessageText(diagnostic.messageText, '\n'), )}`; }); expect(Number(ts.versionMajorMinor)).toBe(3.6); expect(errors.length).toBe(16); for (const error of errors) { expect(error).toMatchSnapshot(); } }); }); frenic-csstype-47a4c33/__tests__/dist.typescript-3.7.ts000066400000000000000000000015431510660504500227720ustar00rootroot00000000000000import * as path from 'path'; import * as ts from 'typescript3.7'; import { removeAbsolutePaths, COMPILER_OPTIONS } from './typescript-utils'; describe('Typescript 3.7', () => { it('detects errors', async () => { const program = ts.createProgram([path.resolve(__dirname, '__fixtures__/typecheck.ts')], COMPILER_OPTIONS); const diagnostics = ts.getPreEmitDiagnostics(program); const errors = diagnostics.map(diagnostic => { const { line, character } = diagnostic.file!.getLineAndCharacterOfPosition(diagnostic.start!); return `${line}:${character} - ${removeAbsolutePaths( ts.flattenDiagnosticMessageText(diagnostic.messageText, '\n'), )}`; }); expect(Number(ts.versionMajorMinor)).toBe(3.7); expect(errors.length).toBe(16); for (const error of errors) { expect(error).toMatchSnapshot(); } }); }); frenic-csstype-47a4c33/__tests__/dist.typescript-3.8.ts000066400000000000000000000015431510660504500227730ustar00rootroot00000000000000import * as path from 'path'; import * as ts from 'typescript3.8'; import { removeAbsolutePaths, COMPILER_OPTIONS } from './typescript-utils'; describe('Typescript 3.8', () => { it('detects errors', async () => { const program = ts.createProgram([path.resolve(__dirname, '__fixtures__/typecheck.ts')], COMPILER_OPTIONS); const diagnostics = ts.getPreEmitDiagnostics(program); const errors = diagnostics.map(diagnostic => { const { line, character } = diagnostic.file!.getLineAndCharacterOfPosition(diagnostic.start!); return `${line}:${character} - ${removeAbsolutePaths( ts.flattenDiagnosticMessageText(diagnostic.messageText, '\n'), )}`; }); expect(Number(ts.versionMajorMinor)).toBe(3.8); expect(errors.length).toBe(16); for (const error of errors) { expect(error).toMatchSnapshot(); } }); }); frenic-csstype-47a4c33/__tests__/dist.typescript-3.9.ts000066400000000000000000000015431510660504500227740ustar00rootroot00000000000000import * as path from 'path'; import * as ts from 'typescript3.9'; import { removeAbsolutePaths, COMPILER_OPTIONS } from './typescript-utils'; describe('Typescript 3.9', () => { it('detects errors', async () => { const program = ts.createProgram([path.resolve(__dirname, '__fixtures__/typecheck.ts')], COMPILER_OPTIONS); const diagnostics = ts.getPreEmitDiagnostics(program); const errors = diagnostics.map(diagnostic => { const { line, character } = diagnostic.file!.getLineAndCharacterOfPosition(diagnostic.start!); return `${line}:${character} - ${removeAbsolutePaths( ts.flattenDiagnosticMessageText(diagnostic.messageText, '\n'), )}`; }); expect(Number(ts.versionMajorMinor)).toBe(3.9); expect(errors.length).toBe(16); for (const error of errors) { expect(error).toMatchSnapshot(); } }); }); frenic-csstype-47a4c33/__tests__/dist.typescript-4.0.ts000066400000000000000000000015431510660504500227640ustar00rootroot00000000000000import * as path from 'path'; import * as ts from 'typescript4.0'; import { removeAbsolutePaths, COMPILER_OPTIONS } from './typescript-utils'; describe('Typescript 4.0', () => { it('detects errors', async () => { const program = ts.createProgram([path.resolve(__dirname, '__fixtures__/typecheck.ts')], COMPILER_OPTIONS); const diagnostics = ts.getPreEmitDiagnostics(program); const errors = diagnostics.map(diagnostic => { const { line, character } = diagnostic.file!.getLineAndCharacterOfPosition(diagnostic.start!); return `${line}:${character} - ${removeAbsolutePaths( ts.flattenDiagnosticMessageText(diagnostic.messageText, '\n'), )}`; }); expect(Number(ts.versionMajorMinor)).toBe(4.0); expect(errors.length).toBe(16); for (const error of errors) { expect(error).toMatchSnapshot(); } }); }); frenic-csstype-47a4c33/__tests__/dist.typescript-4.1.ts000066400000000000000000000015431510660504500227650ustar00rootroot00000000000000import * as path from 'path'; import * as ts from 'typescript4.1'; import { removeAbsolutePaths, COMPILER_OPTIONS } from './typescript-utils'; describe('Typescript 4.1', () => { it('detects errors', async () => { const program = ts.createProgram([path.resolve(__dirname, '__fixtures__/typecheck.ts')], COMPILER_OPTIONS); const diagnostics = ts.getPreEmitDiagnostics(program); const errors = diagnostics.map(diagnostic => { const { line, character } = diagnostic.file!.getLineAndCharacterOfPosition(diagnostic.start!); return `${line}:${character} - ${removeAbsolutePaths( ts.flattenDiagnosticMessageText(diagnostic.messageText, '\n'), )}`; }); expect(Number(ts.versionMajorMinor)).toBe(4.1); expect(errors.length).toBe(16); for (const error of errors) { expect(error).toMatchSnapshot(); } }); }); frenic-csstype-47a4c33/__tests__/dist.typescript-4.2.ts000066400000000000000000000015431510660504500227660ustar00rootroot00000000000000import * as path from 'path'; import * as ts from 'typescript4.2'; import { removeAbsolutePaths, COMPILER_OPTIONS } from './typescript-utils'; describe('Typescript 4.2', () => { it('detects errors', async () => { const program = ts.createProgram([path.resolve(__dirname, '__fixtures__/typecheck.ts')], COMPILER_OPTIONS); const diagnostics = ts.getPreEmitDiagnostics(program); const errors = diagnostics.map(diagnostic => { const { line, character } = diagnostic.file!.getLineAndCharacterOfPosition(diagnostic.start!); return `${line}:${character} - ${removeAbsolutePaths( ts.flattenDiagnosticMessageText(diagnostic.messageText, '\n'), )}`; }); expect(Number(ts.versionMajorMinor)).toBe(4.2); expect(errors.length).toBe(16); for (const error of errors) { expect(error).toMatchSnapshot(); } }); }); frenic-csstype-47a4c33/__tests__/dist.typescript-4.3.ts000066400000000000000000000015431510660504500227670ustar00rootroot00000000000000import * as path from 'path'; import * as ts from 'typescript4.3'; import { removeAbsolutePaths, COMPILER_OPTIONS } from './typescript-utils'; describe('Typescript 4.3', () => { it('detects errors', async () => { const program = ts.createProgram([path.resolve(__dirname, '__fixtures__/typecheck.ts')], COMPILER_OPTIONS); const diagnostics = ts.getPreEmitDiagnostics(program); const errors = diagnostics.map(diagnostic => { const { line, character } = diagnostic.file!.getLineAndCharacterOfPosition(diagnostic.start!); return `${line}:${character} - ${removeAbsolutePaths( ts.flattenDiagnosticMessageText(diagnostic.messageText, '\n'), )}`; }); expect(Number(ts.versionMajorMinor)).toBe(4.3); expect(errors.length).toBe(16); for (const error of errors) { expect(error).toMatchSnapshot(); } }); }); frenic-csstype-47a4c33/__tests__/dist.typescript-4.4.ts000066400000000000000000000015431510660504500227700ustar00rootroot00000000000000import * as path from 'path'; import * as ts from 'typescript4.4'; import { removeAbsolutePaths, COMPILER_OPTIONS } from './typescript-utils'; describe('Typescript 4.4', () => { it('detects errors', async () => { const program = ts.createProgram([path.resolve(__dirname, '__fixtures__/typecheck.ts')], COMPILER_OPTIONS); const diagnostics = ts.getPreEmitDiagnostics(program); const errors = diagnostics.map(diagnostic => { const { line, character } = diagnostic.file!.getLineAndCharacterOfPosition(diagnostic.start!); return `${line}:${character} - ${removeAbsolutePaths( ts.flattenDiagnosticMessageText(diagnostic.messageText, '\n'), )}`; }); expect(Number(ts.versionMajorMinor)).toBe(4.4); expect(errors.length).toBe(16); for (const error of errors) { expect(error).toMatchSnapshot(); } }); }); frenic-csstype-47a4c33/__tests__/dist.typescript-4.5.ts000066400000000000000000000015431510660504500227710ustar00rootroot00000000000000import * as path from 'path'; import * as ts from 'typescript4.5'; import { removeAbsolutePaths, COMPILER_OPTIONS } from './typescript-utils'; describe('Typescript 4.5', () => { it('detects errors', async () => { const program = ts.createProgram([path.resolve(__dirname, '__fixtures__/typecheck.ts')], COMPILER_OPTIONS); const diagnostics = ts.getPreEmitDiagnostics(program); const errors = diagnostics.map(diagnostic => { const { line, character } = diagnostic.file!.getLineAndCharacterOfPosition(diagnostic.start!); return `${line}:${character} - ${removeAbsolutePaths( ts.flattenDiagnosticMessageText(diagnostic.messageText, '\n'), )}`; }); expect(Number(ts.versionMajorMinor)).toBe(4.5); expect(errors.length).toBe(16); for (const error of errors) { expect(error).toMatchSnapshot(); } }); }); frenic-csstype-47a4c33/__tests__/dist.typescript-4.6.ts000066400000000000000000000015431510660504500227720ustar00rootroot00000000000000import * as path from 'path'; import * as ts from 'typescript4.6'; import { removeAbsolutePaths, COMPILER_OPTIONS } from './typescript-utils'; describe('Typescript 4.6', () => { it('detects errors', async () => { const program = ts.createProgram([path.resolve(__dirname, '__fixtures__/typecheck.ts')], COMPILER_OPTIONS); const diagnostics = ts.getPreEmitDiagnostics(program); const errors = diagnostics.map(diagnostic => { const { line, character } = diagnostic.file!.getLineAndCharacterOfPosition(diagnostic.start!); return `${line}:${character} - ${removeAbsolutePaths( ts.flattenDiagnosticMessageText(diagnostic.messageText, '\n'), )}`; }); expect(Number(ts.versionMajorMinor)).toBe(4.6); expect(errors.length).toBe(16); for (const error of errors) { expect(error).toMatchSnapshot(); } }); }); frenic-csstype-47a4c33/__tests__/dist.typescript-4.7.ts000066400000000000000000000015431510660504500227730ustar00rootroot00000000000000import * as path from 'path'; import * as ts from 'typescript4.7'; import { removeAbsolutePaths, COMPILER_OPTIONS } from './typescript-utils'; describe('Typescript 4.7', () => { it('detects errors', async () => { const program = ts.createProgram([path.resolve(__dirname, '__fixtures__/typecheck.ts')], COMPILER_OPTIONS); const diagnostics = ts.getPreEmitDiagnostics(program); const errors = diagnostics.map(diagnostic => { const { line, character } = diagnostic.file!.getLineAndCharacterOfPosition(diagnostic.start!); return `${line}:${character} - ${removeAbsolutePaths( ts.flattenDiagnosticMessageText(diagnostic.messageText, '\n'), )}`; }); expect(Number(ts.versionMajorMinor)).toBe(4.7); expect(errors.length).toBe(16); for (const error of errors) { expect(error).toMatchSnapshot(); } }); }); frenic-csstype-47a4c33/__tests__/dist.typescript-4.8.ts000066400000000000000000000015431510660504500227740ustar00rootroot00000000000000import * as path from 'path'; import * as ts from 'typescript4.8'; import { removeAbsolutePaths, COMPILER_OPTIONS } from './typescript-utils'; describe('Typescript 4.8', () => { it('detects errors', async () => { const program = ts.createProgram([path.resolve(__dirname, '__fixtures__/typecheck.ts')], COMPILER_OPTIONS); const diagnostics = ts.getPreEmitDiagnostics(program); const errors = diagnostics.map(diagnostic => { const { line, character } = diagnostic.file!.getLineAndCharacterOfPosition(diagnostic.start!); return `${line}:${character} - ${removeAbsolutePaths( ts.flattenDiagnosticMessageText(diagnostic.messageText, '\n'), )}`; }); expect(Number(ts.versionMajorMinor)).toBe(4.8); expect(errors.length).toBe(16); for (const error of errors) { expect(error).toMatchSnapshot(); } }); }); frenic-csstype-47a4c33/__tests__/dist.typescript-4.9.ts000066400000000000000000000015431510660504500227750ustar00rootroot00000000000000import * as path from 'path'; import * as ts from 'typescript4.9'; import { removeAbsolutePaths, COMPILER_OPTIONS } from './typescript-utils'; describe('Typescript 4.9', () => { it('detects errors', async () => { const program = ts.createProgram([path.resolve(__dirname, '__fixtures__/typecheck.ts')], COMPILER_OPTIONS); const diagnostics = ts.getPreEmitDiagnostics(program); const errors = diagnostics.map(diagnostic => { const { line, character } = diagnostic.file!.getLineAndCharacterOfPosition(diagnostic.start!); return `${line}:${character} - ${removeAbsolutePaths( ts.flattenDiagnosticMessageText(diagnostic.messageText, '\n'), )}`; }); expect(Number(ts.versionMajorMinor)).toBe(4.9); expect(errors.length).toBe(16); for (const error of errors) { expect(error).toMatchSnapshot(); } }); }); frenic-csstype-47a4c33/__tests__/dist.typescript-5.0.ts000066400000000000000000000015431510660504500227650ustar00rootroot00000000000000import * as path from 'path'; import * as ts from 'typescript5.0'; import { removeAbsolutePaths, COMPILER_OPTIONS } from './typescript-utils'; describe('Typescript 5.0', () => { it('detects errors', async () => { const program = ts.createProgram([path.resolve(__dirname, '__fixtures__/typecheck.ts')], COMPILER_OPTIONS); const diagnostics = ts.getPreEmitDiagnostics(program); const errors = diagnostics.map(diagnostic => { const { line, character } = diagnostic.file!.getLineAndCharacterOfPosition(diagnostic.start!); return `${line}:${character} - ${removeAbsolutePaths( ts.flattenDiagnosticMessageText(diagnostic.messageText, '\n'), )}`; }); expect(Number(ts.versionMajorMinor)).toBe(5.0); expect(errors.length).toBe(16); for (const error of errors) { expect(error).toMatchSnapshot(); } }); }); frenic-csstype-47a4c33/__tests__/dist.typescript-5.1.ts000066400000000000000000000015431510660504500227660ustar00rootroot00000000000000import * as path from 'path'; import * as ts from 'typescript5.1'; import { removeAbsolutePaths, COMPILER_OPTIONS } from './typescript-utils'; describe('Typescript 5.1', () => { it('detects errors', async () => { const program = ts.createProgram([path.resolve(__dirname, '__fixtures__/typecheck.ts')], COMPILER_OPTIONS); const diagnostics = ts.getPreEmitDiagnostics(program); const errors = diagnostics.map(diagnostic => { const { line, character } = diagnostic.file!.getLineAndCharacterOfPosition(diagnostic.start!); return `${line}:${character} - ${removeAbsolutePaths( ts.flattenDiagnosticMessageText(diagnostic.messageText, '\n'), )}`; }); expect(Number(ts.versionMajorMinor)).toBe(5.1); expect(errors.length).toBe(16); for (const error of errors) { expect(error).toMatchSnapshot(); } }); }); frenic-csstype-47a4c33/__tests__/dist.typescript-5.2.ts000066400000000000000000000015431510660504500227670ustar00rootroot00000000000000import * as path from 'path'; import * as ts from 'typescript5.2'; import { removeAbsolutePaths, COMPILER_OPTIONS } from './typescript-utils'; describe('Typescript 5.2', () => { it('detects errors', async () => { const program = ts.createProgram([path.resolve(__dirname, '__fixtures__/typecheck.ts')], COMPILER_OPTIONS); const diagnostics = ts.getPreEmitDiagnostics(program); const errors = diagnostics.map(diagnostic => { const { line, character } = diagnostic.file!.getLineAndCharacterOfPosition(diagnostic.start!); return `${line}:${character} - ${removeAbsolutePaths( ts.flattenDiagnosticMessageText(diagnostic.messageText, '\n'), )}`; }); expect(Number(ts.versionMajorMinor)).toBe(5.2); expect(errors.length).toBe(16); for (const error of errors) { expect(error).toMatchSnapshot(); } }); }); frenic-csstype-47a4c33/__tests__/dist.typescript-5.3.ts000066400000000000000000000015431510660504500227700ustar00rootroot00000000000000import * as path from 'path'; import * as ts from 'typescript5.3'; import { removeAbsolutePaths, COMPILER_OPTIONS } from './typescript-utils'; describe('Typescript 5.3', () => { it('detects errors', async () => { const program = ts.createProgram([path.resolve(__dirname, '__fixtures__/typecheck.ts')], COMPILER_OPTIONS); const diagnostics = ts.getPreEmitDiagnostics(program); const errors = diagnostics.map(diagnostic => { const { line, character } = diagnostic.file!.getLineAndCharacterOfPosition(diagnostic.start!); return `${line}:${character} - ${removeAbsolutePaths( ts.flattenDiagnosticMessageText(diagnostic.messageText, '\n'), )}`; }); expect(Number(ts.versionMajorMinor)).toBe(5.3); expect(errors.length).toBe(16); for (const error of errors) { expect(error).toMatchSnapshot(); } }); }); frenic-csstype-47a4c33/__tests__/dist.typescript-5.4.ts000066400000000000000000000015431510660504500227710ustar00rootroot00000000000000import * as path from 'path'; import * as ts from 'typescript5.4'; import { removeAbsolutePaths, COMPILER_OPTIONS } from './typescript-utils'; describe('Typescript 5.4', () => { it('detects errors', async () => { const program = ts.createProgram([path.resolve(__dirname, '__fixtures__/typecheck.ts')], COMPILER_OPTIONS); const diagnostics = ts.getPreEmitDiagnostics(program); const errors = diagnostics.map(diagnostic => { const { line, character } = diagnostic.file!.getLineAndCharacterOfPosition(diagnostic.start!); return `${line}:${character} - ${removeAbsolutePaths( ts.flattenDiagnosticMessageText(diagnostic.messageText, '\n'), )}`; }); expect(Number(ts.versionMajorMinor)).toBe(5.4); expect(errors.length).toBe(16); for (const error of errors) { expect(error).toMatchSnapshot(); } }); }); frenic-csstype-47a4c33/__tests__/dist.typescript-5.5.ts000066400000000000000000000015431510660504500227720ustar00rootroot00000000000000import * as path from 'path'; import * as ts from 'typescript5.5'; import { removeAbsolutePaths, COMPILER_OPTIONS } from './typescript-utils'; describe('Typescript 5.5', () => { it('detects errors', async () => { const program = ts.createProgram([path.resolve(__dirname, '__fixtures__/typecheck.ts')], COMPILER_OPTIONS); const diagnostics = ts.getPreEmitDiagnostics(program); const errors = diagnostics.map(diagnostic => { const { line, character } = diagnostic.file!.getLineAndCharacterOfPosition(diagnostic.start!); return `${line}:${character} - ${removeAbsolutePaths( ts.flattenDiagnosticMessageText(diagnostic.messageText, '\n'), )}`; }); expect(Number(ts.versionMajorMinor)).toBe(5.5); expect(errors.length).toBe(16); for (const error of errors) { expect(error).toMatchSnapshot(); } }); }); frenic-csstype-47a4c33/__tests__/dist.typescript-5.6.ts000066400000000000000000000015431510660504500227730ustar00rootroot00000000000000import * as path from 'path'; import * as ts from 'typescript5.6'; import { removeAbsolutePaths, COMPILER_OPTIONS } from './typescript-utils'; describe('Typescript 5.6', () => { it('detects errors', async () => { const program = ts.createProgram([path.resolve(__dirname, '__fixtures__/typecheck.ts')], COMPILER_OPTIONS); const diagnostics = ts.getPreEmitDiagnostics(program); const errors = diagnostics.map(diagnostic => { const { line, character } = diagnostic.file!.getLineAndCharacterOfPosition(diagnostic.start!); return `${line}:${character} - ${removeAbsolutePaths( ts.flattenDiagnosticMessageText(diagnostic.messageText, '\n'), )}`; }); expect(Number(ts.versionMajorMinor)).toBe(5.6); expect(errors.length).toBe(16); for (const error of errors) { expect(error).toMatchSnapshot(); } }); }); frenic-csstype-47a4c33/__tests__/dist.typescript-5.7.ts000066400000000000000000000015431510660504500227740ustar00rootroot00000000000000import * as path from 'path'; import * as ts from 'typescript5.7'; import { removeAbsolutePaths, COMPILER_OPTIONS } from './typescript-utils'; describe('Typescript 5.7', () => { it('detects errors', async () => { const program = ts.createProgram([path.resolve(__dirname, '__fixtures__/typecheck.ts')], COMPILER_OPTIONS); const diagnostics = ts.getPreEmitDiagnostics(program); const errors = diagnostics.map(diagnostic => { const { line, character } = diagnostic.file!.getLineAndCharacterOfPosition(diagnostic.start!); return `${line}:${character} - ${removeAbsolutePaths( ts.flattenDiagnosticMessageText(diagnostic.messageText, '\n'), )}`; }); expect(Number(ts.versionMajorMinor)).toBe(5.7); expect(errors.length).toBe(16); for (const error of errors) { expect(error).toMatchSnapshot(); } }); }); frenic-csstype-47a4c33/__tests__/dist.typescript-5.8.ts000066400000000000000000000015431510660504500227750ustar00rootroot00000000000000import * as path from 'path'; import * as ts from 'typescript5.8'; import { removeAbsolutePaths, COMPILER_OPTIONS } from './typescript-utils'; describe('Typescript 5.8', () => { it('detects errors', async () => { const program = ts.createProgram([path.resolve(__dirname, '__fixtures__/typecheck.ts')], COMPILER_OPTIONS); const diagnostics = ts.getPreEmitDiagnostics(program); const errors = diagnostics.map(diagnostic => { const { line, character } = diagnostic.file!.getLineAndCharacterOfPosition(diagnostic.start!); return `${line}:${character} - ${removeAbsolutePaths( ts.flattenDiagnosticMessageText(diagnostic.messageText, '\n'), )}`; }); expect(Number(ts.versionMajorMinor)).toBe(5.8); expect(errors.length).toBe(16); for (const error of errors) { expect(error).toMatchSnapshot(); } }); }); frenic-csstype-47a4c33/__tests__/dist.typescript-latest.ts000066400000000000000000000015401510660504500237540ustar00rootroot00000000000000import * as path from 'path'; import * as ts from 'typescript'; import { removeAbsolutePaths, COMPILER_OPTIONS } from './typescript-utils'; describe('Typescript 5.0', () => { it('detects errors', async () => { const program = ts.createProgram([path.resolve(__dirname, '__fixtures__/typecheck.ts')], COMPILER_OPTIONS); const diagnostics = ts.getPreEmitDiagnostics(program); const errors = diagnostics.map(diagnostic => { const { line, character } = diagnostic.file!.getLineAndCharacterOfPosition(diagnostic.start!); return `${line}:${character} - ${removeAbsolutePaths( ts.flattenDiagnosticMessageText(diagnostic.messageText, '\n'), )}`; }); expect(Number(ts.versionMajorMinor)).toBe(5.9); expect(errors.length).toBe(16); for (const error of errors) { expect(error).toMatchSnapshot(); } }); }); frenic-csstype-47a4c33/__tests__/package.json000066400000000000000000000024031510660504500212270ustar00rootroot00000000000000{ "name": "csstype-test", "private": true, "dependencies": { "csstype": "file:..", "typescript3.5": "npm:typescript@~3.5.0", "typescript3.6": "npm:typescript@~3.6.0", "typescript3.7": "npm:typescript@~3.7.0", "typescript3.8": "npm:typescript@~3.8.0", "typescript3.9": "npm:typescript@~3.9.0", "typescript4.0": "npm:typescript@~4.0.0", "typescript4.1": "npm:typescript@~4.1.0", "typescript4.2": "npm:typescript@~4.2.0", "typescript4.3": "npm:typescript@~4.3.0", "typescript4.4": "npm:typescript@~4.4.0", "typescript4.5": "npm:typescript@~4.5.0", "typescript4.6": "npm:typescript@~4.6.0", "typescript4.7": "npm:typescript@~4.7.0", "typescript4.8": "npm:typescript@~4.8.0", "typescript4.9": "npm:typescript@~4.9.0", "typescript5.0": "npm:typescript@~5.0.0", "typescript5.1": "npm:typescript@~5.1.0", "typescript5.2": "npm:typescript@~5.2.0", "typescript5.3": "npm:typescript@~5.3.0", "typescript5.4": "npm:typescript@~5.4.0", "typescript5.5": "npm:typescript@~5.5.0", "typescript5.6": "npm:typescript@~5.6.0", "typescript5.7": "npm:typescript@~5.7.0", "typescript5.8": "npm:typescript@~5.8.0" }, "overrides": { "js-yaml": ">=4.1.1" } } frenic-csstype-47a4c33/__tests__/src.typer.ts000066400000000000000000000073021510660504500212450ustar00rootroot00000000000000import parse from '../src/syntax/parser'; import typer, { Type } from '../src/syntax/typer'; describe('typing', () => { it('types combinators', () => { expect(typer(parse('something another-thing'))).toHaveLength(1); expect(typer(parse('something && another-thing'))).toHaveLength(1); expect(typer(parse('something || another-thing'))).toHaveLength(3); expect(typer(parse('something | another-thing'))).toHaveLength(2); }); it('types components', () => { expect(typer(parse('something | 100 | '))).toMatchObject([ { type: Type.StringLiteral }, { type: Type.NumericLiteral }, { type: Type.DataType }, ]); }); it('types optional components', () => { expect(typer(parse('something another-thing? | 100'))).toMatchObject([ { type: Type.String }, { type: Type.StringLiteral }, { type: Type.NumericLiteral }, ]); expect(typer(parse('something another-thing? yet-another-thing? | 100'))).toMatchObject([ { type: Type.String }, { type: Type.StringLiteral }, { type: Type.NumericLiteral }, ]); expect(typer(parse('something? another-thing yet-another-thing? | 100'))).toMatchObject([ { type: Type.String }, { type: Type.StringLiteral }, { type: Type.NumericLiteral }, ]); expect(typer(parse('something? another-thing? yet-another-thing | 100'))).toMatchObject([ { type: Type.String }, { type: Type.StringLiteral }, { type: Type.NumericLiteral }, ]); expect(typer(parse('something? another-thing? yet-another-thing? | 100'))).toMatchObject([ { type: Type.String }, { type: Type.StringLiteral }, { type: Type.StringLiteral }, { type: Type.StringLiteral }, { type: Type.NumericLiteral }, ]); expect(typer(parse('something another-thing yet-another-thing? | 100'))).toMatchObject([ { type: Type.String }, { type: Type.NumericLiteral }, ]); expect(typer(parse('something another-thing? yet-another-thing | 100'))).toMatchObject([ { type: Type.String }, { type: Type.NumericLiteral }, ]); expect(typer(parse('something? another-thing yet-another-thing | 100'))).toMatchObject([ { type: Type.String }, { type: Type.NumericLiteral }, ]); }); it('does not duplicate types', () => { expect(typer(parse('something? another-thing | something? another-thing | 100 | 100'))).toMatchObject([ { type: Type.String }, { type: Type.StringLiteral }, { type: Type.NumericLiteral }, ]); }); it('types optional group components', () => { expect(typer(parse('[ something another-thing ]? 100'))).toMatchObject([ { type: Type.String }, { type: Type.NumericLiteral }, ]); }); it('types multipliers', () => { expect(typer(parse('something-x | something-y | [ something | another-thing ]{1,2}'))).toMatchObject([ { type: Type.StringLiteral }, { type: Type.StringLiteral }, { type: Type.String }, { type: Type.StringLiteral }, { type: Type.StringLiteral }, ]); expect(typer(parse('something{1,4} [ antoher-thing{1,4} ]?'))).toMatchObject([ { type: Type.String }, { type: Type.StringLiteral }, ]); expect(typer(parse('something#'))).toMatchObject([{ type: Type.String }, { type: Type.StringLiteral }]); }); it('types number with range', () => { expect(typer(parse(''))).toMatchObject([{ type: Type.Number }]); }); it('types comma components', () => { expect(typer(parse('something , another-thing'))).toMatchObject([ { type: Type.StringLiteral }, { type: Type.String }, { type: Type.StringLiteral }, ]); }); }); jest.mock('chalk', () => ({}) as typeof import('chalk')); frenic-csstype-47a4c33/__tests__/typescript-utils.ts000066400000000000000000000005741510660504500226640ustar00rootroot00000000000000import * as path from 'path'; export const COMPILER_OPTIONS = { noEmit: true, strict: true, types: [], }; const rootPosixPath = path.resolve(__dirname, '..').replace(/\\/g, '/') + '/'; const rootWin32Path = rootPosixPath.replace(/\//g, '\\'); export function removeAbsolutePaths(message: string) { return message.replace(rootPosixPath, '').replace(rootWin32Path, ''); } frenic-csstype-47a4c33/babel.config.mjs000066400000000000000000000001661510660504500200330ustar00rootroot00000000000000export default { presets: [['@babel/preset-env', { targets: { node: 'current' } }], '@babel/preset-typescript'], }; frenic-csstype-47a4c33/build.ts000066400000000000000000000044271510660504500164620ustar00rootroot00000000000000import * as chokidar from 'chokidar'; import * as path from 'path'; import * as prettier from 'prettier'; import { FLOW_FILENAME, TYPESCRIPT_FILENAME, writeFileAsync } from './utils'; import { runCLI } from 'jest'; import { fileURLToPath } from 'url'; import { Config } from '@jest/types'; import { declarator } from './src/declarator'; import generateFlow from './src/flow'; import generateTypescript from './src/typescript'; const __dirname = path.dirname(fileURLToPath(import.meta.url)); if (process.argv.includes('--start')) { trigger() .then(() => { process.exit(0); }) .catch(e => { console.error(e); process.exit(1); }); } else if (process.argv.includes('--watch')) { trigger() .catch(e => { console.error(e); }) .then(() => { console.info('Done! Watching...'); let debounce: NodeJS.Timeout; chokidar.watch(path.join(__dirname, 'src'), { ignored: '*.json', ignoreInitial: true }).on('all', () => { clearTimeout(debounce); debounce = setTimeout( () => trigger() .catch(e => console.error(e)) .then(() => console.info('Done! Moving on...')), 300, ); }); }); } export default async function trigger() { console.info('Generating...'); const { unformattedFlow, unformattedTypescript } = await create(); console.info('Formatting...'); const [flow, typescript] = await Promise.all([ format(unformattedFlow, 'flow'), format(unformattedTypescript, 'typescript'), ]); console.info(`Writing files...`); await Promise.all([writeFileAsync(FLOW_FILENAME, flow), writeFileAsync(TYPESCRIPT_FILENAME, typescript)]); console.info('Testing...'); await testing(); } async function create() { const data = declarator(3); return { unformattedFlow: await generateFlow(data), unformattedTypescript: await generateTypescript(data) }; } async function format(output: string, parser: prettier.BuiltInParserName) { const options = await prettier.resolveConfig(path.join(__dirname, '.prettierrc')); return prettier.format(output, { ...options, printWidth: 180, singleQuote: false, parser, }); } function testing() { return runCLI({ testMatch: ['**/__tests__/dist.*.ts'], runInBand: true } as Config.Argv, [__dirname]); } frenic-csstype-47a4c33/eslint.config.mjs000066400000000000000000000006611510660504500202640ustar00rootroot00000000000000import eslint from '@eslint/js'; import { defineConfig, globalIgnores } from 'eslint/config'; import tseslint from 'typescript-eslint'; import prettierEslint from 'eslint-plugin-prettier/recommended'; export default defineConfig( eslint.configs.recommended, tseslint.configs.recommended, prettierEslint, globalIgnores(['**/*.d.ts', '__tests__/__fixtures__/*']), { rules: { 'prettier/prettier': 2, }, }, ); frenic-csstype-47a4c33/index.d.ts000066400000000000000000033237711510660504500167250ustar00rootroot00000000000000export {}; export type PropertyValue = TValue extends Array ? Array : TValue extends infer TUnpacked & {} ? TUnpacked : TValue; export type Fallback = { [P in keyof T]: T[P] | readonly NonNullable[] }; export interface StandardLonghandProperties { /** * This feature is not Baseline because it does not work in some of the most widely-used browsers. * * **Syntax**: `auto | ` * * **Initial value**: `auto` * * | Chrome | Firefox | Safari | Edge | IE | * | :----: | :-----: | :------: | :----: | :-: | * | **93** | **92** | **15.4** | **93** | No | * * @see https://developer.mozilla.org/docs/Web/CSS/Reference/Properties/accent-color */ accentColor?: Property.AccentColor | undefined; /** * This feature is well established and works across many devices and browser versions. It’s been available across browsers since September 2015. * * **Syntax**: `normal | | | ? ` * * **Initial value**: `normal` * * | Chrome | Firefox | Safari | Edge | IE | * | :------: | :-----: | :-----: | :----: | :----: | * | **29** | **28** | **9** | **12** | **11** | * | 21 _-x-_ | | 7 _-x-_ | | | * * @see https://developer.mozilla.org/docs/Web/CSS/Reference/Properties/align-content */ alignContent?: Property.AlignContent | undefined; /** * This feature is well established and works across many devices and browser versions. It’s been available across browsers since September 2015. * * **Syntax**: `normal | stretch | | [ ? ] | anchor-center` * * **Initial value**: `normal` * * | Chrome | Firefox | Safari | Edge | IE | * | :------: | :-----: | :-----: | :----: | :----: | * | **29** | **20** | **9** | **12** | **11** | * | 21 _-x-_ | | 7 _-x-_ | | | * * @see https://developer.mozilla.org/docs/Web/CSS/Reference/Properties/align-items */ alignItems?: Property.AlignItems | undefined; /** * This feature is well established and works across many devices and browser versions. It’s been available across browsers since September 2015. * * **Syntax**: `auto | normal | stretch | | ? | anchor-center` * * **Initial value**: `auto` * * | Chrome | Firefox | Safari | Edge | IE | * | :------: | :-----: | :-----: | :----: | :----: | * | **29** | **20** | **9** | **12** | **10** | * | 21 _-x-_ | | 7 _-x-_ | | | * * @see https://developer.mozilla.org/docs/Web/CSS/Reference/Properties/align-self */ alignSelf?: Property.AlignSelf | undefined; /** * **Syntax**: `[ normal | | | ? ]#` * * **Initial value**: `normal` */ alignTracks?: Property.AlignTracks | undefined; /** * This feature is not Baseline because it does not work in some of the most widely-used browsers. * * **Syntax**: `baseline | alphabetic | ideographic | middle | central | mathematical | text-before-edge | text-after-edge` * * **Initial value**: `baseline` * * | Chrome | Firefox | Safari | Edge | IE | * | :----: | :-----: | :-----: | :----: | :-: | * | **1** | No | **5.1** | **79** | No | * * @see https://developer.mozilla.org/docs/Web/CSS/Reference/Properties/alignment-baseline */ alignmentBaseline?: Property.AlignmentBaseline | undefined; /** * This feature is not Baseline because it does not work in some of the most widely-used browsers. * * **Syntax**: `none | #` * * **Initial value**: `none` * * | Chrome | Firefox | Safari | Edge | IE | * | :-----: | :---------: | :----: | :-----: | :-: | * | **125** | **preview** | **26** | **125** | No | * * @see https://developer.mozilla.org/docs/Web/CSS/Reference/Properties/anchor-name */ anchorName?: Property.AnchorName | undefined; /** * **Syntax**: `none | all | #` * * **Initial value**: `none` * * | Chrome | Firefox | Safari | Edge | IE | * | :-----: | :---------: | :----: | :-----: | :-: | * | **131** | **preview** | **26** | **131** | No | */ anchorScope?: Property.AnchorScope | undefined; /** * Since July 2023, this feature works across the latest devices and browser versions. This feature might not work in older devices or browsers. * * **Syntax**: `#` * * **Initial value**: `replace` * * | Chrome | Firefox | Safari | Edge | IE | * | :-----: | :-----: | :----: | :-----: | :-: | * | **112** | **115** | **16** | **112** | No | * * @see https://developer.mozilla.org/docs/Web/CSS/Reference/Properties/animation-composition */ animationComposition?: Property.AnimationComposition | undefined; /** * This feature is well established and works across many devices and browser versions. It’s been available across browsers since September 2015. * * **Syntax**: `