Removed nativeObject from the API
This commit is contained in:
parent
b63fcb9f1e
commit
6b373ccae5
8 changed files with 7 additions and 9 deletions
|
@ -22,7 +22,6 @@ export interface ISheet {
|
|||
|
||||
object<Props extends PropTypeConfig_Compound<$IntentionalAny>>(
|
||||
key: string,
|
||||
nativeObject: unknown,
|
||||
config: SheetObjectConfig<Props>,
|
||||
): ISheetObject<Props>
|
||||
|
||||
|
@ -42,7 +41,6 @@ export default class TheatreSheet implements ISheet {
|
|||
|
||||
object<Props extends PropTypeConfig_Compound<$IntentionalAny>>(
|
||||
key: string,
|
||||
nativeObject: unknown,
|
||||
config: SheetObjectConfig<Props>,
|
||||
): ISheetObject<Props> {
|
||||
const internal = privateAPI(this)
|
||||
|
@ -55,6 +53,8 @@ export default class TheatreSheet implements ISheet {
|
|||
|
||||
const existingObject = internal.getObject(sanitizedPath)
|
||||
|
||||
const nativeObject = null
|
||||
|
||||
if (existingObject) {
|
||||
existingObject.overrideConfig(nativeObject, config)
|
||||
return existingObject.publicApi as $IntentionalAny
|
||||
|
|
|
@ -30,7 +30,6 @@ export async function setupTestSheet(sheetState: SheetState_Historic) {
|
|||
const sheetPublicAPI = project.sheet('Sheet')
|
||||
const objPublicAPI = sheetPublicAPI.object(
|
||||
'obj',
|
||||
null,
|
||||
t.compound({
|
||||
position: t.compound({
|
||||
x: t.number(0),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue