Home > @vsf-enterprise/commercetools-types > TypeDefinition
# TypeDefinition type
Types define the structure of custom fields which can be attached to different entities throughout the platform.
Signature:
export declare type TypeDefinition = Versioned & {
__typename?: 'TypeDefinition';
key: Scalars['String'];
name?: Maybe<Scalars['String']>;
description?: Maybe<Scalars['String']>;
nameAllLocales: Array<LocalizedString>;
descriptionAllLocales?: Maybe<Array<LocalizedString>>;
resourceTypeIds: Array<Scalars['String']>;
fieldDefinitions: Array<FieldDefinition>;
id: Scalars['String'];
version: Scalars['Long'];
createdAt: Scalars['DateTime'];
lastModifiedAt: Scalars['DateTime'];
createdBy?: Maybe<Initiator>;
lastModifiedBy?: Maybe<Initiator>;
};
References: Versioned, Scalars, Maybe, LocalizedString, FieldDefinition, Initiator