Skip to content

Commit

Permalink
Fix import paths and update types
Browse files Browse the repository at this point in the history
  • Loading branch information
1aron committed Feb 26, 2024
1 parent 63bd733 commit 3fb227b
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/css/src/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { hexToRgb } from './utils/hex-to-rgb'
import { flattenObject } from './utils/flatten-object'
import { extendConfig } from './utils/extend-config'
import { type PropertiesHyphen } from 'csstype'
import '../types/global.d' // fix: ../css/src/core.ts:1205:16 - error TS7017: Element implicitly has an 'any' type because type 'typeof globalThis' has no index signature.
import './types/global' // fix: ../css/src/core.ts:1205:16 - error TS7017: Element implicitly has an 'any' type because type 'typeof globalThis' has no index signature.

type VariableValue =
{ type: 'string', value: string }
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type Core from '../src/core'
import type Core from '../core'

declare global {
// eslint-disable-next-line no-var
Expand Down
2 changes: 1 addition & 1 deletion packages/validator/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ export { default as isClassValid } from './is-class-valid'
export { default as validate } from './validate'
export { default as generateValidRules } from './generate-valid-rules'

export * from '../types/syntax-error'
export * from './types/syntax-error'
File renamed without changes.
2 changes: 1 addition & 1 deletion packages/validator/src/validate-css.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* eslint-disable no-cond-assign */
// @ts-expect-error
import { lexer, parse, walk, property as propertyName } from 'css-tree'
import { type SyntaxError } from '../types/syntax-error'
import { type SyntaxError } from './types/syntax-error'

export default function validateCSS(text: string, parseOptions = {
parseAtrulePrelude: false,
Expand Down
2 changes: 1 addition & 1 deletion packages/validator/src/validate.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { type SyntaxError } from '../types/syntax-error'
import { type SyntaxError } from './types/syntax-error'
import { Config, MasterCSS } from '@master/css'
import validateCSS from './validate-css'

Expand Down

0 comments on commit 3fb227b

Please sign in to comment.