Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convert extend util to TypeScript #2928

Merged
merged 18 commits into from
Nov 8, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Follow standard export pattern
  • Loading branch information
davwheat authored and dsevillamartin committed Oct 30, 2021
commit 76efb98cf8c3358cd7737b334eb7385ca8172f3e
2 changes: 1 addition & 1 deletion js/src/common/utils/proxifyCompat.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export default (compat: { [key: string]: any }, namespace: string) => {
export default function proxifyCompat(compat: Record<string, unknown>, namespace: string) {
// regex to replace common/ and NAMESPACE/ for core & core extensions
// and remove .js, .ts and .tsx extensions
// e.g. admin/utils/extract --> utils/extract
Expand Down