mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-12 20:57:45 +02:00
Refactor server side notifications (#2327)
Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
@@ -13,9 +13,9 @@
|
||||
// limitations under the License.
|
||||
//
|
||||
|
||||
import { Doc } from '@hcengineering/core'
|
||||
import type { Plugin, Resource } from '@hcengineering/platform'
|
||||
import { plugin } from '@hcengineering/platform'
|
||||
import { Presenter } from '@hcengineering/server-notification'
|
||||
|
||||
/**
|
||||
* @public
|
||||
@@ -27,7 +27,7 @@ export const serverInventoryId = 'server-inventory' as Plugin
|
||||
*/
|
||||
export default plugin(serverInventoryId, {
|
||||
function: {
|
||||
ProductHTMLPresenter: '' as Resource<(doc: Doc) => string>,
|
||||
ProductTextPresenter: '' as Resource<(doc: Doc) => string>
|
||||
ProductHTMLPresenter: '' as Resource<Presenter>,
|
||||
ProductTextPresenter: '' as Resource<Presenter>
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user