json-ld-types
TypeScript icon, indicating that this package has built-in type declarations

4.1.0 • Public • Published

JSON-LD Types

A set of types for the Atlassian Object Vocabulary defined at Atlassian Object Vocabulary.

Usage

import { JsonLd } from '@atlassian/json-ld-types';

const file: JsonLd.Object<JsonLd.Meta.Granted, JsonLd.Data.TextDocument> = {
    meta: {
        access: 'granted',
        visibility: 'restricted',
        auth: [],
        definitionId: 'confluence-object-provider',
    },
    data: {
        '@context': {
            '@vocab': 'https://www.w3.org/ns/activitystreams#',
            atlassian: 'https://schema.atlassian.com/ns/vocabulary#',
            schema: 'http://schema.org/',
        },
        generator: {
            '@type': 'Application',
            '@id': 'https://www.atlassian.com/#Confluence',
            name: 'Confluence',
        },
        '@type': ['Document', 'schema:TextDigitalDocument'],
        url: 'https://product-fabric.atlassian.net/wiki/spaces/SL/pages/876610663/Github+Object+provider',
        name: 'Github Object provider',
        summary: 'This page is within the Smart Links space',
    },
};

Readme

Keywords

none

Package Sidebar

Install

npm i json-ld-types

Weekly Downloads

8,156

Version

4.1.0

License

Apache-2.0

Unpacked Size

63.1 kB

Total Files

19

Last publish

Collaborators

  • kishek95
  • media-build-bot