Sha256: d986410e4dc5916fe059bebc1bf3bb735dcc29b9cd6ee94e8972b4c6aa37c089

Contents?: true

Size: 607 Bytes

Versions: 2

Compression:

Stored size: 607 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;
}

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
pages_core-3.15.2 app/javascript/types/Attachments.ts
pages_core-3.15.1 app/javascript/types/Attachments.ts