Fixed the build
This commit is contained in:
parent
ba6f71bbac
commit
4284f80930
3 changed files with 44 additions and 65 deletions
|
@ -163,16 +163,10 @@ export function stringLiteral<Opts extends {[key in string]: string}>(
|
|||
|
||||
interface IBasePropType<ValueType> {
|
||||
valueType: ValueType
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
[s]: 'TheatrePropType'
|
||||
label: string | undefined
|
||||
}
|
||||
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
export interface PropTypeConfig_Number extends IBasePropType<number> {
|
||||
type: 'number'
|
||||
default: number
|
||||
|
@ -180,9 +174,7 @@ export interface PropTypeConfig_Number extends IBasePropType<number> {
|
|||
nudgeFn: NumberNudgeFn
|
||||
nudgeMultiplier: number
|
||||
}
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
|
||||
export type NumberNudgeFn = (p: {
|
||||
deltaX: number
|
||||
deltaFraction: number
|
||||
|
@ -205,29 +197,20 @@ const defaultNumberNudgeFn: NumberNudgeFn = ({
|
|||
|
||||
return deltaX * magnitude * config.nudgeMultiplier
|
||||
}
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
|
||||
export interface PropTypeConfig_Boolean extends IBasePropType<boolean> {
|
||||
type: 'boolean'
|
||||
default: boolean
|
||||
}
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
|
||||
export interface PropTypeConfigExtras {
|
||||
label?: string
|
||||
}
|
||||
/**
|
||||
* @internal
|
||||
*/ export interface PropTypeConfig_String extends IBasePropType<string> {
|
||||
export interface PropTypeConfig_String extends IBasePropType<string> {
|
||||
type: 'string'
|
||||
default: string
|
||||
}
|
||||
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
export interface PropTypeConfig_StringLiteral<T extends string>
|
||||
extends IBasePropType<T> {
|
||||
type: 'stringLiteral'
|
||||
|
@ -244,8 +227,10 @@ type IValidCompoundProps = {
|
|||
* @todo Determine if 'compound' is a clear term for what this is.
|
||||
* I didn't want to use 'object' as it could get confused with
|
||||
* SheetObject.
|
||||
*/
|
||||
|
||||
/**
|
||||
*
|
||||
* @internal
|
||||
*/
|
||||
export interface PropTypeConfig_Compound<Props extends IValidCompoundProps>
|
||||
extends IBasePropType<{[K in keyof Props]: Props[K]['valueType']}> {
|
||||
|
@ -258,26 +243,20 @@ export interface PropTypeConfig_Compound<Props extends IValidCompoundProps>
|
|||
// type: 'cssrgba'
|
||||
// default: {r: number; g: number; b: number; a: number}
|
||||
// }
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
|
||||
export interface PropTypeConfig_Enum extends IBasePropType<{}> {
|
||||
type: 'enum'
|
||||
cases: Record<string, PropTypeConfig>
|
||||
defaultCase: string
|
||||
}
|
||||
/**
|
||||
* @category Prop type definitions
|
||||
*/
|
||||
|
||||
export type PropTypeConfig_AllPrimitives =
|
||||
| PropTypeConfig_Number
|
||||
| PropTypeConfig_Boolean
|
||||
| PropTypeConfig_String
|
||||
| PropTypeConfig_StringLiteral<$IntentionalAny>
|
||||
// | PropTypeConfig_CSSRGBA
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
|
||||
export type PropTypeConfig =
|
||||
| PropTypeConfig_AllPrimitives
|
||||
| PropTypeConfig_Compound<$IntentionalAny>
|
||||
|
|
|
@ -19,10 +19,10 @@
|
|||
"@babel/cli": "^7.14.3",
|
||||
"@babel/core": "^7.14.3",
|
||||
"@babel/runtime": "^7.14.0",
|
||||
"@rollup/plugin-alias": "^3.1.2",
|
||||
"@rollup/plugin-multi-entry": "^4.0.0",
|
||||
"@rollup/plugin-alias": "^3.1.5",
|
||||
"@rollup/plugin-multi-entry": "^4.1.0",
|
||||
"@rollup/plugin-replace": "^2.4.2",
|
||||
"@rollup/plugin-typescript": "^8.2.1",
|
||||
"@rollup/plugin-typescript": "^8.2.5",
|
||||
"@theatre/core": "workspace:*",
|
||||
"@theatre/dataverse": "workspace:*",
|
||||
"@theatre/dataverse-react": "workspace:*",
|
||||
|
@ -76,8 +76,8 @@
|
|||
"redux": "^3.7.2",
|
||||
"redux-actions": "^2.6.5",
|
||||
"rimraf": "^3.0.2",
|
||||
"rollup": "^2.50.5",
|
||||
"rollup-plugin-dts": "^3.0.2",
|
||||
"rollup": "^2.56.3",
|
||||
"rollup-plugin-dts": "^4.0.0",
|
||||
"shallowequal": "^1.1.0",
|
||||
"styled-components": "^5.3.0",
|
||||
"svg-inline-loader": "^0.8.2",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue