Sha256: fdfef88bf73f7390532be74dfc8203170738ee4fb583d8fb394cdcb0f579503e

Contents?: true

Size: 646 Bytes

Versions: 2

Compression:

Stored size: 646 Bytes

Contents

import * as Drag from "./Drag";
import { Locale, LocalizedValue } from "../types";

export interface Resource {
  id: number | null;
  name: LocalizedValue;
  description: LocalizedValue;
  url: string;
  filename: string;
}

export interface Record extends Drag.DraggableRecord {
  id?: number;
  attachment: Resource;
  uploading?: boolean;
}

export interface Options {
  attribute: string;
  locale: string;
  locales: { [index: string]: Locale };
  showEmbed: boolean;
}

export interface State {
  collection: Drag.Collection<Record>;
  deleted: Record[];
  setDeleted: (records: Record[]) => void;
  update: (records: Record[]) => void;
}

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
pages_core-3.15.4 app/javascript/types/Attachments.ts
pages_core-3.15.3 app/javascript/types/Attachments.ts