Qualify typed presentation factories through public state interfaces
This commit is contained in:
@@ -11,6 +11,7 @@ workspace Example id "presentation-example" revision "presentation-example@1" co
|
||||
atom PresentationMountRecord id "presentation-mount-record";
|
||||
atom Library id "library";
|
||||
atom OtherLibrary id "other-library";
|
||||
atom PublicLibrary id "public-library";
|
||||
atom Document id "document";
|
||||
atom ReaderNavigationRecord id "reader-navigation-record";
|
||||
atom DocumentNavigationRecord id "document-navigation-record";
|
||||
@@ -85,4 +86,10 @@ workspace Example id "presentation-example" revision "presentation-example@1" co
|
||||
};
|
||||
}
|
||||
conform OtherLibrary as Presentation<atom ReaderNavigationRecord> id "other-library:presentation" {}
|
||||
conform PublicLibrary as StateFactory<interface ReaderNavigation> id "public-reader:factory" {
|
||||
bind create.call to package PresentationRuntime.createReaderState with {
|
||||
navigation to creation ReaderNavigationRecord with {PresentationState from input;};
|
||||
};
|
||||
}
|
||||
conform PublicLibrary as Presentation<interface ReaderNavigation> id "public-library:presentation" {}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user