2
0
mirror of https://github.com/tenrok/vue-meta.git synced 2026-06-20 12:00:34 +03:00

types: add generate method

This commit is contained in:
pimlie
2019-07-28 16:56:56 +02:00
parent 9c3d6f6dd8
commit 328c89daf2
2 changed files with 3 additions and 0 deletions
+2
View File
@@ -74,3 +74,5 @@ const ret: void = resume()
resume = $meta.pause(true)
const { metaInfo: metaData2 }: { metaInfo: MetaInfo } = resume()
const { metaInfo: metaData3 }: { metaInfo: MetaInfo } = $meta.resume(true)
const metaInfo: MetaInfoSSR = VueMeta.generate({ meta: [{ charset: 'utf-8' }] }, { ssrAppId: 1 })
+1
View File
@@ -18,6 +18,7 @@ export declare class VueMeta {
static version: string
static install(vue: typeof Vue, options?: VueMetaOptions): PluginFunction<never>
static hasMetaInfo(vm: Component): boolean
static generate(metaInfo: MetaInfo, options?: Object): MetaInfoSSR
}
interface Refreshed {