fix: API 合并错误

fix: 暂时撤销对 HttpClient 的翻译,它的改动太大了
This commit is contained in:
Zhicheng WANG 2019-06-06 21:38:21 +08:00
parent 3e0ef413a8
commit b046dfdb6e
10 changed files with 37 additions and 575 deletions

File diff suppressed because it is too large Load Diff

View File

@ -32,6 +32,7 @@ export interface HttpParameterCodec {
* Use the `HttpParameterCodec` class to encode and decode the query-string values. * Use the `HttpParameterCodec` class to encode and decode the query-string values.
* *
* `HttpParameterCodec`使 `encodeURIComponent` `decodeURIComponent` URL key value * `HttpParameterCodec`使 `encodeURIComponent` `decodeURIComponent` URL key value
* 使 `HttpParameterCodec`
* *
* @publicApi * @publicApi
*/ */

View File

@ -145,7 +145,7 @@ export class Location {
* Given a string representing a URL, returns the URL path after stripping the * Given a string representing a URL, returns the URL path after stripping the
* trailing slashes. * trailing slashes.
* *
* URL URL * URL URL
* *
* @param url String representing a URL. * @param url String representing a URL.
* *

View File

@ -22,6 +22,7 @@ import {ViewEncapsulation} from './view';
* Type of the Directive decorator / constructor function. * Type of the Directive decorator / constructor function.
* *
* *
*
* @publicApi * @publicApi
*/ */
export interface DirectiveDecorator { export interface DirectiveDecorator {
@ -780,7 +781,6 @@ export interface PipeDecorator {
* to a template. To make it a member of an NgModule, * to a template. To make it a member of an NgModule,
* list it in the `declarations` field of the `NgModule` metadata. * list it in the `declarations` field of the `NgModule` metadata.
* *
* pipe
*/ */
(obj: Pipe): TypeDecorator; (obj: Pipe): TypeDecorator;
@ -930,7 +930,7 @@ export interface OutputDecorator {
* The DOM property bound to the output property is automatically updated during change detection. * The DOM property bound to the output property is automatically updated during change detection.
* *
* *
* Angular * DOM Angular
* *
* @usageNotes * @usageNotes
* *

View File

@ -57,7 +57,7 @@ export type ɵɵNgModuleDefWithMeta<T, Declarations, Imports, Exports> = NgModul
* never create the object directly since the shape of this object * never create the object directly since the shape of this object
* can change between versions. * can change between versions.
* *
* 使 `defineNgModule` * 使 `ɵɵdefineNgModule`
*/ */
export interface NgModuleDef<T> { export interface NgModuleDef<T> {
/** Token representing the module. Used by DI. /** Token representing the module. Used by DI.

View File

@ -198,10 +198,13 @@ export abstract class AbstractControl {
* *
* * For an enabled `FormGroup`, the values of enabled controls as an object * * For an enabled `FormGroup`, the values of enabled controls as an object
* with a key-value pair for each member of the group. * with a key-value pair for each member of the group.
*
* `FormGroup`
*
* * For a disabled `FormGroup`, the values of all controls as an object * * For a disabled `FormGroup`, the values of all controls as an object
* with a key-value pair for each member of the group. * with a key-value pair for each member of the group.
* *
* `FormGroup` * `FormGroup`
* *
* * For a `FormArray`, the values of enabled controls as an array. * * For a `FormArray`, the values of enabled controls as an array.
* *
@ -1874,7 +1877,7 @@ export class FormGroup extends AbstractControl {
* * `onlySelf`: When true, each change only affects this control, and not its parent. Default is * * `onlySelf`: When true, each change only affects this control, and not its parent. Default is
* true. * true.
* *
* `onlySelf`: `true` `false` * `onlySelf` `true` `false`
* *
* * `emitEvent`: When true or not supplied (the default), both the `statusChanges` and * * `emitEvent`: When true or not supplied (the default), both the `statusChanges` and
* `valueChanges` * `valueChanges`
@ -2177,7 +2180,7 @@ export class FormGroup extends AbstractControl {
* the `FormArray` directly, as that result in strange and unexpected behavior such * the `FormArray` directly, as that result in strange and unexpected behavior such
* as broken change detection. * as broken change detection.
* *
* 使 `FormArray` `push``insert` `removeAt` * 使 `FormArray` `push``insert``removeAt` `clear`
* `FormArray` `AbstractControl` * `FormArray` `AbstractControl`
* *
* @publicApi * @publicApi

View File

@ -17,7 +17,7 @@ export {SecurityContext};
/** /**
* Marker interface for a value that's safe to use in a particular context. * Marker interface for a value that's safe to use in a particular context.
* *
* * @publicApi
* *
*/ */
export interface SafeValue {} export interface SafeValue {}
@ -25,7 +25,7 @@ export interface SafeValue {}
/** /**
* Marker interface for a value that's safe to use as HTML. * Marker interface for a value that's safe to use as HTML.
* *
* * @publicApi
* HTML * HTML
*/ */
export interface SafeHtml extends SafeValue {} export interface SafeHtml extends SafeValue {}
@ -33,7 +33,7 @@ export interface SafeHtml extends SafeValue {}
/** /**
* Marker interface for a value that's safe to use as style (CSS). * Marker interface for a value that's safe to use as style (CSS).
* *
* * @publicApi
* CSS * CSS
*/ */
export interface SafeStyle extends SafeValue {} export interface SafeStyle extends SafeValue {}
@ -41,7 +41,7 @@ export interface SafeStyle extends SafeValue {}
/** /**
* Marker interface for a value that's safe to use as JavaScript. * Marker interface for a value that's safe to use as JavaScript.
* *
* * @publicApi
* JavaScript * JavaScript
*/ */
export interface SafeScript extends SafeValue {} export interface SafeScript extends SafeValue {}
@ -49,7 +49,7 @@ export interface SafeScript extends SafeValue {}
/** /**
* Marker interface for a value that's safe to use as a URL linking to a document. * Marker interface for a value that's safe to use as a URL linking to a document.
* *
* * @publicApi
* URL * URL
*/ */
export interface SafeUrl extends SafeValue {} export interface SafeUrl extends SafeValue {}
@ -57,7 +57,7 @@ export interface SafeUrl extends SafeValue {}
/** /**
* Marker interface for a value that's safe to use as a URL to load executable code from. * Marker interface for a value that's safe to use as a URL to load executable code from.
* *
* * @publicApi
* URL * URL
*/ */
export interface SafeResourceUrl extends SafeValue {} export interface SafeResourceUrl extends SafeValue {}

View File

@ -53,7 +53,6 @@ export type UrlMatchResult = {
* is not expressive enough. * is not expressive enough.
* *
* URL * URL
*
* `path` `pathMatch` `Route.matcher` URL * `path` `pathMatch` `Route.matcher` URL
* *
* @param segments An array of URL segments. * @param segments An array of URL segments.
@ -279,10 +278,12 @@ export type RunGuardsAndResolvers = 'pathParamsChange' | 'pathParamsOrQueryParam
* Empty-path route configurations can be used to instantiate components that do not 'consume' * Empty-path route configurations can be used to instantiate components that do not 'consume'
* any URL segments. * any URL segments.
* *
* "消费" url
*
* In the following configuration, when navigating to * In the following configuration, when navigating to
* `/team/11`, the router instantiates the 'AllUsers' component. * `/team/11`, the router instantiates the 'AllUsers' component.
* *
* "消费" url * `/team/11` 'AllUsers'
* *
* ``` * ```
* [{ * [{
@ -304,8 +305,6 @@ export type RunGuardsAndResolvers = 'pathParamsChange' | 'pathParamsOrQueryParam
* *
* Note that an empty path route inherits its parent's parameters and data. * Note that an empty path route inherits its parent's parameters and data.
* *
*
*
* ``` * ```
* [{ * [{
* path: 'team/:id', * path: 'team/:id',
@ -411,9 +410,6 @@ export type RunGuardsAndResolvers = 'pathParamsChange' | 'pathParamsOrQueryParam
* It then extracts the set of routes defined in that NgModule, * It then extracts the set of routes defined in that NgModule,
* and transparently adds those routes to the main configuration. * and transparently adds those routes to the main configuration.
* *
*
* `loadChildren` `children`
*
* ``` * ```
* [{ * [{
* path: 'team/:id', * path: 'team/:id',

View File

@ -38,7 +38,7 @@ import {isUrlTree} from './utils/type_guards';
* *
* Options that modify the navigation strategy. * Options that modify the navigation strategy.
* *
* *
* @publicApi * @publicApi
*/ */
export interface NavigationExtras { export interface NavigationExtras {
@ -307,7 +307,7 @@ function defaultRouterHook(snapshot: RouterStateSnapshot, runExtras: {
* *
* An NgModule that provides navigation and URL manipulation capabilities. * An NgModule that provides navigation and URL manipulation capabilities.
* *
* URL * URL NgModule
* *
* @see `Route`. * @see `Route`.
* @see [Routing and Navigation Guide](guide/router). * @see [Routing and Navigation Guide](guide/router).
@ -368,7 +368,7 @@ export class Router {
* True if at least one navigation event has occurred, * True if at least one navigation event has occurred,
* false otherwise. * false otherwise.
* *
* * True False
*/ */
navigated: boolean = false; navigated: boolean = false;
private lastSuccessfulId: number = -1; private lastSuccessfulId: number = -1;
@ -399,12 +399,17 @@ export class Router {
/** /**
* How to handle a navigation request to the current URL. One of: * How to handle a navigation request to the current URL. One of:
*
* URL
*
* - `'ignore'` : The router ignores the request. * - `'ignore'` : The router ignores the request.
*
* `'ignore'`
*
* - `'reload'` : The router reloads the URL. Use to implement a "refresh" feature. * - `'reload'` : The router reloads the URL. Use to implement a "refresh" feature.
* *
* URL * `'reload'` URL"刷新"
* "刷新" *
* 使 URL 'ignore'
*/ */
onSameUrlNavigation: 'reload'|'ignore' = 'ignore'; onSameUrlNavigation: 'reload'|'ignore' = 'ignore';
@ -412,17 +417,17 @@ export class Router {
* How to merge parameters, data, and resolved data from parent to child * How to merge parameters, data, and resolved data from parent to child
* routes. One of: * routes. One of:
* *
* *
* *
* - `'emptyOnly'` : Inherit parent parameters, data, and resolved data * - `'emptyOnly'` : Inherit parent parameters, data, and resolved data
* for path-less or component-less routes. * for path-less or component-less routes.
* *
* `'emptyOnly'` * `'emptyOnly'`
* *
* - `'always'` : Inherit parent parameters, data, and resolved data * - `'always'` : Inherit parent parameters, data, and resolved data
* for all child routes. * for all child routes.
* *
* `'always'` * `'always'`
* *
*/ */
paramsInheritanceStrategy: 'emptyOnly'|'always' = 'emptyOnly'; paramsInheritanceStrategy: 'emptyOnly'|'always' = 'emptyOnly';
@ -1019,7 +1024,7 @@ export class Router {
/** /**
* Navigate based on the provided URL, which must be absolute. * Navigate based on the provided URL, which must be absolute.
* *
* url 使 * URL 使
* *
* @param url An absolute URL. The function does not apply any delta to the current URL. * @param url An absolute URL. The function does not apply any delta to the current URL.
* *

View File

@ -465,7 +465,7 @@ export interface ExtraOptions {
* You can implement custom scroll restoration behavior by adapting the enabled behavior as * You can implement custom scroll restoration behavior by adapting the enabled behavior as
* follows: * follows:
* *
* *
* *
* ```typescript * ```typescript
* class AppModule { * class AppModule {
@ -619,7 +619,7 @@ export interface ExtraOptions {
* In other words, you're required to use `../` rather than `./`. This is currently the default * In other words, you're required to use `../` rather than `./`. This is currently the default
* behavior. Setting this option to `corrected` enables the fix. * behavior. Setting this option to `corrected` enables the fix.
* *
* 使 `../` `./` v6 `legacy` v7 * 使 `../` `./` `corrected`
*/ */
relativeLinkResolution?: 'legacy'|'corrected'; relativeLinkResolution?: 'legacy'|'corrected';
} }