refactor: fix various typos across different packages (#44523)

simply fix different unrelated typos present in various packages

PR Close #44523
This commit is contained in:
dario-piotrowicz
2021-12-17 16:12:18 +00:00
committed by Andrew Scott
parent 1c8aecbf48
commit 964a696fc2
9 changed files with 12 additions and 12 deletions
@@ -502,7 +502,7 @@ export class MyDir<T extends string> {
}
```
In order to properly infer and check the type of this directve, the type constructor must include the generic bounds:
In order to properly infer and check the type of this directive, the type constructor must include the generic bounds:
```typescript
declare function ctor1<T extends string>(inputs: {value?: T}): MyDir<T>;
@@ -210,7 +210,7 @@ runInEachFileSystem(() => {
});
it('does not repeat diagnostics for missing pipes in directive inputs', () => {
// The directive here is structured so that a type constructor is used, which resuts in each
// The directive here is structured so that a type constructor is used, which results in each
// input binding being processed twice. This results in the 'uppercase' pipe being resolved
// twice, and since it doesn't exist this operation will fail. The test is here to verify that
// failing to resolve the pipe twice only produces a single diagnostic (no duplicates).
+1 -1
View File
@@ -117,7 +117,7 @@ the type declaration of the `ɵcmp` in the `.d.ts`.
#### TypeScript architecture
The overall architecure of TypeScript is:
The overall architecture of TypeScript is:
|------------|
|----------------------------------> | TypeScript |
+1 -1
View File
@@ -141,7 +141,7 @@ export function i18nStartFirstCreatePass(
}
/**
* Allocate space in i18n Range add create OpCode instruction to crete a text or comment node.
* Allocate space in i18n Range add create OpCode instruction to create a text or comment node.
*
* @param tView Current `TView` needed to allocate space in i18n range.
* @param rootTNode Root `TNode` of the i18n block. This node determines if the new TNode will be
+1 -1
View File
@@ -71,7 +71,7 @@ export class NgModuleRef<T> extends viewEngine_NgModuleRef<T> implements Interna
stringify(ngModuleType)) as R3Injector;
// We need to resolve the injector types separately from the injector creation, because
// the module might be trying to use this ref in its contructor for DI which will cause a
// the module might be trying to use this ref in its constructor for DI which will cause a
// circular error that will eventually error out, because the injector isn't created yet.
this._r3Injector._resolveInjectorDefTypes();
this.instance = this.get(ngModuleType);
@@ -315,7 +315,7 @@ describe('directives', () => {
@Directive({selector: '[test]'})
class MyDir {
constructor() {
logs.push('MyDir.contructor');
logs.push('MyDir.constructor');
}
@Input('test') myInput = '';
@@ -339,7 +339,7 @@ describe('directives', () => {
const fixture = TestBed.createComponent(MyComp);
fixture.detectChanges();
expect(logs).toEqual(['MyDir.contructor']);
expect(logs).toEqual(['MyDir.constructor']);
});
});
+3 -3
View File
@@ -367,13 +367,13 @@ platform([WORKER_APP_PLATFORM_PROVIDERS])
function initAppThread(zone: NgZone, bus: MyAwesomeMessageBus): void{
/**
* Here you can do any initilization work that requires the app providers to be initialized.
* Here you can do any initialization work that requires the app providers to be initialized.
* At a minimum, you must attach your bus to the zone and setup a DOM adapter.
* Depending on your environment you may choose to do more work here.
*/
}
```
Notice how we use the `WORKER_RENDER_APPLICTION_COMMON` providers instead of the `WORKER_RENDER_APPLICATION` providers on the render thread.
Notice how we use the `WORKER_RENDER_APPLICATION_COMMON` providers instead of the `WORKER_RENDER_APPLICATION` providers on the render thread.
This is because the `WORKER_RENDER_APPLICATION` providers include an application initializer that starts a new WebWorker/Isolate.
The `WORKER_RENDER_APPLICATION_COMMON` providers make no assumption about where your application code lives.
However, we now need to provide our own app initializer. At the very least this initializer needs to call `initializeGenericWorkerRenderer`.
@@ -422,7 +422,7 @@ export class MyComponent {
var arguments = [new FnArg(value, PRIMITIVE)];
var methodInfo = new UiArguments("awesomeMethod", arguments);
broker.runOnService(methodInfo, PRIMTIVE).then((result: string) => {
broker.runOnService(methodInfo, PRIMITIVE).then((result: string) => {
// result will be equal to the return value of doCoolThing(value) that ran on the UI.
});
}
+1 -1
View File
@@ -14,7 +14,7 @@ export interface Schema {
/**
* Will this project use $localize at runtime?
*
* If true then the dependency is included in the `dependencies` section of packge.json, rather
* If true then the dependency is included in the `dependencies` section of package.json, rather
* than `devDependencies`.
*/
useAtRuntime?: boolean;