# types/image.types.ts

> 21 lines of code and 4 definitions.

Tree: Bane's Lab Social Share
Language: typescript
Layer: infrastructure
Canonical: https://banes-lab.com/anatomy/social-share#file-social-share-types-image-types-ts
Source text: https://banes-lab.com/source/social-share/types/image.types.ts.txt

Listed in [types](https://banes-lab.com/api/source/social-share/types.md), after [types/card.types.ts](https://banes-lab.com/source/social-share/types/card.types.ts.md) and before [types/stage.types.ts](https://banes-lab.com/source/social-share/types/stage.types.ts.md).

## Definitions

- `RenderedImage` (interface_declaration, line 1, exported)
- `ImageSize` (interface_declaration, line 12, exported)
- `ShareEntry` (interface_declaration, line 17, exported)
- `ShareLedger` (type_alias_declaration, line 24, exported)

## Contained in

- [types](https://banes-lab.com/anatomy/social-share/folder-social-share-types.md)

## Source

```typescript
export interface RenderedImage {
    readonly card: string;
    readonly profile: string;
    readonly scale: number;
    readonly hash: string;
    readonly still: Buffer;
    readonly animation: Buffer | null;
    readonly motion: Buffer | null;
    readonly video: Buffer | null;
}

export interface ImageSize {
    readonly width: number;
    readonly height: number;
}

export interface ShareEntry {
    readonly page: string;
    readonly source: string;
    readonly alt: string;
    readonly stills: readonly string[];
}

export type ShareLedger = ReadonlyMap<string, string>;
```
