0.0.33 • Published 1 year ago

@types/google.feeds v0.0.33

Weekly downloads
3
License
MIT
Repository
github
Last release
1 year ago

Installation

npm install --save @types/google.feeds

Summary

This package contains type definitions for Google Feed Apis (https://developers.google.com/feed/).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/google.feeds.

index.d.ts

// Type definitions for Google Feed Apis
// Project: https://developers.google.com/feed/
// Definitions by: RodneyJT <https://github.com/RodneyJT>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

declare namespace google.feeds {
    export class Feed {
        constructor();
        constructor(url: string);
        findFeeds(query?: string, callback?: (result: findResult) => void ): void;
        getElementsByTagNameNS(node: string, ns: string, localName: string): any[];
        includeHistoricalEntries(): void;
        load(callback?: (result: feedResult) => void ): void;
        setNumEntries(num: number): void;
        setResultFormat(format: string): void;
    }
}

interface feedResult {
    error?: feedError | undefined;
    xmlDocument?: string | undefined;
    feed: feedJSON;
}

interface findResult {
    error?: feedError | undefined;
    xmlDocument?: string | undefined;
    findEntries: findEntry[];
}

interface feedError {
    code: string;
    message: string;
}

interface feedJSON {
    feedURL: string;
    link: string;
    author: string;
    description: string;
    entries: feedEntry[];
}

interface feedEntry {
    mediaGroup: MediaGroup[];
    title: string;
    link: string;
    content: string;
    contentSnippet: string;
    publishedDate: string;
    categories: string[];
}

interface findEntry {
    title: string;
    link: string;
    contentSnippet: string;
    url: string;
}

interface MediaGroup {
    content: MediaContent[];
}

interface MediaContent {
    url: string;
    fileSize: number;
    type: string;
    medium: string;
    isDefault: boolean;
    expression: string;
    bitrate: number;
    framerate: number;
    samplingrate: number;
    channels: string;
    duration: number;
    height: number;
    width: number;
    lang: string;
}

Additional Details

  • Last updated: Thu, 08 Jul 2021 12:02:26 GMT
  • Dependencies: none
  • Global values: google

Credits

These definitions were written by RodneyJT.

0.0.33

1 year ago

0.0.30

2 years ago

0.0.31

2 years ago

0.0.32

2 years ago

0.0.29

4 years ago

0.0.28

9 years ago

0.0.27

9 years ago

0.0.26-alpha

9 years ago

0.0.25-alpha

9 years ago

0.0.24-alpha

9 years ago

0.0.23-alpha

9 years ago

0.0.22-alpha

9 years ago

0.0.21-alpha

9 years ago

0.0.20-alpha

9 years ago

0.0.15-alpha

9 years ago

0.0.14-alpha

9 years ago