-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
58 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,7 @@ | ||
export {}; | ||
|
||
declare global { | ||
interface Window { | ||
dataLayer: Array<any>; | ||
dataLayer: object[]; | ||
} | ||
} | ||
|
||
export interface ExternalLinkItem { | ||
identifier: string; | ||
name: string; | ||
url: string; | ||
weight: number; | ||
} | ||
|
||
export interface Metadata { | ||
name: string; | ||
items: Array<MetadataItem>; | ||
} | ||
|
||
export interface MetadataItem { | ||
title: string; | ||
slug: string; | ||
headline: string; | ||
} | ||
|
||
export interface DynamicObject { | ||
[key: string]: any; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
declare namespace Sveltin { | ||
export interface ContentEntry { | ||
resource: string; | ||
metadata: YAMLFrontmatter; | ||
html?: string; | ||
} | ||
|
||
export interface ContentMetadata { | ||
name: string; | ||
items: Array<YAMLFrontmatter>; | ||
} | ||
|
||
export interface YAMLFrontmatter { | ||
title: string; | ||
slug: string; | ||
draft: boolean; | ||
headline: string; | ||
headings: Array<TOCEntry>; | ||
author?: string; | ||
created_at?: string; | ||
updated_at?: string; | ||
cover?: string; | ||
[key: string]: string | number | object | []; | ||
} | ||
|
||
export interface TOCEntry { | ||
id: string; | ||
title: string; | ||
depth: number; | ||
children?: Array<TOCEntry>; | ||
} | ||
|
||
export interface DynamicObject { | ||
[key: string]: string | number | object | []; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters