diff --git a/ghost/collections/src/Collection.ts b/ghost/collections/src/Collection.ts index a83ea91ff6..d6b2c1e370 100644 --- a/ghost/collections/src/Collection.ts +++ b/ghost/collections/src/Collection.ts @@ -2,6 +2,7 @@ import {UniqueChecker} from './UniqueChecker'; import {ValidationError} from '@tryghost/errors'; import tpl from '@tryghost/tpl'; import nql = require('@tryghost/nql'); +import {CollectionPost} from './CollectionPost'; import ObjectID from 'bson-objectid'; @@ -16,12 +17,6 @@ const messages = { slugMustBeUnique: 'Slug must be unique' }; -type CollectionPost = { - id: string; - featured?: boolean; - published_at?: Date; -} - export class Collection { id: string; title: string; diff --git a/ghost/collections/src/CollectionPost.ts b/ghost/collections/src/CollectionPost.ts new file mode 100644 index 0000000000..35db0b61d8 --- /dev/null +++ b/ghost/collections/src/CollectionPost.ts @@ -0,0 +1,7 @@ +// eslint-disable-next-line ghost/filenames/match-regex +export type CollectionPost = { + id: string; + featured?: boolean; + published_at?: Date; + tags: string[]; +};