Skip to content

Commit fd8bb54

Browse files
committed
feat(angular-devtools): rename withDevtools to provideTanStackDevtools
1 parent c728cfe commit fd8bb54

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

examples/angular/with-devtools/src/app/app.config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import { ApplicationConfig, provideBrowserGlobalErrorListeners } from '@angular/core'
2-
import { withDevtools } from '@tanstack/angular-devtools/provider'
2+
import { provideTanStackDevtools } from '@tanstack/angular-devtools/provider'
33

44
export const appConfig: ApplicationConfig = {
55
providers: [
66
provideBrowserGlobalErrorListeners(),
7-
withDevtools(() => ({
7+
provideTanStackDevtools(() => ({
88
plugins: [
99
{
1010
name: 'Custom devtools',

packages/angular-devtools/provider/with-devtools.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ export type WithDevtoolsOptions = {
5757
deps?: Array<any>
5858
}
5959

60-
export function withDevtools(
60+
export function provideTanStackDevtools(
6161
withDevtoolsFn: WithDevtoolsOptionsFn,
6262
options: WithDevtoolsOptions = {},
6363
): EnvironmentProviders {

0 commit comments

Comments
 (0)