Skip to content

Commit c8c249e

Browse files
chore(release): 1.0.0-alpha.13
# [1.0.0-alpha.13](v1.0.0-alpha.12...v1.0.0-alpha.13) (2021-11-02) ### Bug Fixes * allow number indexes in pathToToken ([f43514b](f43514b))
1 parent f43514b commit c8c249e

File tree

4 files changed

+10
-3
lines changed

4 files changed

+10
-3
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
# [1.0.0-alpha.13](https://github.com/dash-ui/styles/compare/v1.0.0-alpha.12...v1.0.0-alpha.13) (2021-11-02)
2+
3+
4+
### Bug Fixes
5+
6+
* allow number indexes in pathToToken ([f43514b](https://github.com/dash-ui/styles/commit/f43514be92182a21ad114c5896040efaf7ab0bbe))
7+
18
# [1.0.0-alpha.12](https://github.com/dash-ui/styles/compare/v1.0.0-alpha.11...v1.0.0-alpha.12) (2021-11-02)
29

310

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@dash-ui/styles",
3-
"version": "1.0.0-alpha.12",
3+
"version": "1.0.0-alpha.13",
44
"description": "A tiny, powerful, framework-agnostic CSS-in-JS library.",
55
"keywords": [
66
"styles",

types/create-styles.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ export declare function compileStyles<Tokens extends DashTokens = DashTokens, Th
417417
* @param path - A dot-notation string that represents the path to a value
418418
*/
419419
export declare function pathToToken<Tokens extends Record<string, unknown> = TokensUnion<DashTokens, DashThemes>>(path: KeysUnion<Tokens>): string;
420-
declare type Concat<Fst, Scd> = Fst extends string ? Scd extends string ? Fst extends "" ? `${Scd}` : `${Fst}.${Scd}` : never : never;
420+
declare type Concat<Fst, Scd> = Fst extends string ? Scd extends string | number ? Fst extends "" ? `${Scd}` : `${Fst}.${Scd}` : never : never;
421421
declare type KeysUnion<T, Cache extends string = ""> = T extends Primitive ? Cache : {
422422
[P in keyof T]: Concat<Cache, P> | KeysUnion<T[P], Concat<Cache, P>>;
423423
}[keyof T];

types/tsconfig.tsbuildinfo

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)