Skip to content

Commit

Permalink
fix(docs): correct typos (#4629)
Browse files Browse the repository at this point in the history
  • Loading branch information
maxpatiiuk committed Apr 23, 2024
1 parent 83d0482 commit 5287233
Show file tree
Hide file tree
Showing 11 changed files with 12 additions and 10 deletions.
2 changes: 2 additions & 0 deletions .changeset/khaki-experts-jump.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
---
2 changes: 1 addition & 1 deletion packages/context/src/lib/create-context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export type ContextType<Key extends Context<unknown, unknown>> =
/**
* Creates a typed Context.
*
* Contexts are compared with with strict equality.
* Contexts are compared with strict equality.
*
* If you want two separate `createContext()` calls to referer to the same
* context, then use a key that will by equal under strict equality like a
Expand Down
2 changes: 1 addition & 1 deletion packages/labs/cli/src/lib/commands/init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export const makeInitCommand = (cli: LitCli): Command => {
const name = options.name as string;
/*
* This is a basic check to ensure that the name is a valid custom
* element name. Will make sure you you start off with a character and
* element name. Will make sure you start off with a character and
* at least one hyphen plus more characters. Will not check for the
* following invalid use cases:
* - starting with a digit
Expand Down
2 changes: 1 addition & 1 deletion packages/labs/eleventy-plugin-lit/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ Use the `componentModules` setting to tell the plugin where to find the
definitions of your components.

Pass an array of paths to `.js` files containing Lit component definitions.
Paths are interpreted relative to to the directory from which the `eleventy`
Paths are interpreted relative to the directory from which the `eleventy`
command is executed.

Each `.js` file should be a JavaScript module (ESM) that imports `lit` with a
Expand Down
2 changes: 1 addition & 1 deletion packages/labs/preact-signals/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Preact Signals are a good place to start. It has integrations with other librari

`SignalWatcher` is a mixin that makes an element watch all signal accesses during the element's reactive update lifecycle, then triggers an element update when signals change. This includes signals read in `shouldUpdate()`, `willUpdate()`, `update()`, `render()`, `updated()`, `firstUpdated()`, and reactive controller's `hostUpdate()` and `hostUpdated()`.

This effectively makes the the return result of `render()` a computed signal.
This effectively makes the return result of `render()` a computed signal.

```ts
import {LitElement, html} from 'lit';
Expand Down
2 changes: 1 addition & 1 deletion packages/labs/ssr/src/lib/render-value.ts
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ const REGEXP_TEMPLATE_HAS_TOP_LEVEL_PAGE_TAG =
* - Call `renderer.connectedCallback()`
* - Emit `renderer.renderAttributes()`
* - `text`
* - Emit end of of open tag `>`
* - Emit end of open tag `>`
* - `custom-element-shadow`
* - Emit `renderer.renderShadow()` (emits `<template shadowroot>` +
* recurses to emit `render()`)
Expand Down
2 changes: 1 addition & 1 deletion packages/lit-element/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,7 @@ Changes below were based on the [Keep a Changelog](http://keepachangelog.com/) f

### Changed

- Added a static `getPropertyDescriptor` method to allow easier customization of property accessors. This method should return a a `PropertyDescriptor` to install on the property. If no descriptor is returned, no property accessor is created. ([#911](https://github.com/Polymer/lit-element/issues/911))
- Added a static `getPropertyDescriptor` method to allow easier customization of property accessors. This method should return a `PropertyDescriptor` to install on the property. If no descriptor is returned, no property accessor is created. ([#911](https://github.com/Polymer/lit-element/issues/911))
- The value returned by `render` is always rendered, even if it isn't a `TemplateResult`. ([#712](https://github.com/Polymer/lit-element/issues/712))

### Added
Expand Down
2 changes: 1 addition & 1 deletion packages/lit-html/src/directives/private-async-helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export class Pauser {
/**
* When paused, returns a promise to be awaited; when unpaused, returns
* undefined. Note that in the microtask between the pauser being resumed
* an an await of this promise resolving, the pauser could be paused again,
* an await of this promise resolving, the pauser could be paused again,
* hence callers should check the promise in a loop when awaiting.
* @returns A promise to be awaited when paused or undefined
*/
Expand Down
2 changes: 1 addition & 1 deletion packages/lit-html/src/directives/repeat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ class RepeatDirective extends Directive {
// come first (to ensure we're always working on valid old
// parts) and that the final else clause comes last (since
// that's where the expensive moves occur). The order of
// remaining clauses is is just a simple guess at which cases
// remaining clauses is just a simple guess at which cases
// will be most common.
//
// * Note, we could calculate the longest
Expand Down
2 changes: 1 addition & 1 deletion packages/reactive-element/src/reactive-element.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1580,7 +1580,7 @@ export abstract class ReactiveElement
* @category updates
*/
protected update(_changedProperties: PropertyValues) {
// The forEach() expression will only run when when __reflectingProperties is
// The forEach() expression will only run when __reflectingProperties is
// defined, and it returns undefined, setting __reflectingProperties to
// undefined
this.__reflectingProperties &&= this.__reflectingProperties.forEach((p) =>
Expand Down
2 changes: 1 addition & 1 deletion packages/task/src/task.ts
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ export class Task<
return this._taskComplete;
}

// Generate an in-progress promise if the the status is pending and has been
// Generate an in-progress promise if the status is pending and has been
// cleared by .run().
if (this.status === TaskStatus.PENDING) {
this._taskComplete = new Promise((res, rej) => {
Expand Down

0 comments on commit 5287233

Please sign in to comment.