mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-19 05:03:32 +08:00
Merge pull request #4149 from Maks3w/feature/hal-links
[HAL] Link object
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
/// <reference path="hypertext-application-language.d.ts"/>
|
||||
|
||||
// Link object
|
||||
|
||||
// Fields format:
|
||||
var link:Hal.Link = {
|
||||
"deprecation": "",
|
||||
"href": "",
|
||||
"hreflang": "",
|
||||
"name": "",
|
||||
"profile": "",
|
||||
"templated": true,
|
||||
"title": "",
|
||||
"type": "",
|
||||
};
|
||||
|
||||
// Required fields:
|
||||
var link:Hal.Link = {
|
||||
"href": "",
|
||||
};
|
||||
22
hypertext-application-language/hypertext-application-language.d.ts
vendored
Normal file
22
hypertext-application-language/hypertext-application-language.d.ts
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
// Type definitions for Hypertext Application Language Draft 6
|
||||
// Project: https://tools.ietf.org/html/draft-kelly-json-hal-06
|
||||
// Definitions by: Maks3w <https://github.com/maks3w/>
|
||||
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
||||
|
||||
declare module Hal {
|
||||
/**
|
||||
* Describe a HAL Link object
|
||||
*
|
||||
* https://tools.ietf.org/html/draft-kelly-json-hal-06#section-5
|
||||
*/
|
||||
interface Link {
|
||||
deprecation?: string;
|
||||
href: string;
|
||||
hreflang?: string;
|
||||
name?: string;
|
||||
profile?: string;
|
||||
templated?: boolean;
|
||||
title?: string;
|
||||
type?: string;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user