Skip to content

Commit 1f69ff4

Browse files
authored
fix(cdk/clipboard): typo in injection token name (#21978)
There was a typo in the name of the `CDK_COPY_TO_CLIPBOARD_CONFIG` token. Fixes #21976.
1 parent ea008d7 commit 1f69ff4

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

src/cdk/clipboard/copy-to-clipboard.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,14 @@ export interface CdkCopyToClipboardConfig {
2727
}
2828

2929
/** Injection token that can be used to provide the default options to `CdkCopyToClipboard`. */
30-
export const CKD_COPY_TO_CLIPBOARD_CONFIG =
31-
new InjectionToken<CdkCopyToClipboardConfig>('CKD_COPY_TO_CLIPBOARD_CONFIG');
30+
export const CDK_COPY_TO_CLIPBOARD_CONFIG =
31+
new InjectionToken<CdkCopyToClipboardConfig>('CDK_COPY_TO_CLIPBOARD_CONFIG');
32+
33+
/**
34+
* @deprecated Use `CDK_COPY_TO_CLIPBOARD_CONFIG` instead.
35+
* @breaking-change 13.0.0
36+
*/
37+
export const CKD_COPY_TO_CLIPBOARD_CONFIG = CDK_COPY_TO_CLIPBOARD_CONFIG;
3238

3339
/**
3440
* Provides behavior for a button that when clicked copies content into user's

tools/public_api_guard/cdk/clipboard.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
export declare const CDK_COPY_TO_CLIPBOARD_CONFIG: InjectionToken<CdkCopyToClipboardConfig>;
2+
13
export declare class CdkCopyToClipboard implements OnDestroy {
24
attempts: number;
35
copied: EventEmitter<boolean>;

0 commit comments

Comments
 (0)