superdesk/superdesk-client-core

View on GitHub
scripts/api/content-profiles.ts

Summary

Maintainability
A
0 mins
Test Coverage
import {IContentProfile} from 'superdesk-api';
import ng from 'core/services/ng';

interface IContentProfilesApi {
    get(id: IContentProfile['_id']): Promise<IContentProfile>;
}

export const contentProfiles: IContentProfilesApi = {
    get: (id) => ng.get('content').getType(id),
};