# applyRegistryCodemods

Source: /tuil/docs/reference/packages/registry/api/apply-registry-codemods
Locale: en

function exported by @mwillbanks/tuil-registry.



{/* Generated by tooling/docs/generate-reference.ts. */}

## function [#function]

Public function exported by `@mwillbanks/tuil-registry`.

```ts
export function applyRegistryCodemods(
  content: string,
  codemods: readonly RegistryCodemod[],
): {
  readonly content: string;
  readonly applied: readonly string[];
};
```

## Members [#members]

This declaration has no public members.

## Parameters [#parameters]

| Member     | Type                         | Required | Description                                                    | Related types                                                               |
| ---------- | ---------------------------- | -------- | -------------------------------------------------------------- | --------------------------------------------------------------------------- |
| `content`  | `string`                     | Yes      | Supplies the `content` value as `string`.                      | —                                                                           |
| `codemods` | `readonly RegistryCodemod[]` | Yes      | Supplies the `codemods` value as `readonly RegistryCodemod[]`. | [`RegistryCodemod`](/tuil/docs/reference/packages/registry/api/registry-codemod) |

## Returns [#returns]

`{
  readonly content: string;
  readonly applied: readonly string[];
}` — Returns a value that satisfies `{
  readonly content: string;
  readonly applied: readonly string[];
}`.

Related types: —

## Throws [#throws]

No thrown errors are documented for this declaration.

## Related types [#related-types]

* [`RegistryCodemod`](/tuil/docs/reference/packages/registry/api/registry-codemod)

## Source [#source]

[View the secondary source reference](https://github.com/mwillbanks/tuil/blob/main/packages/registry/src/index.ts)

## Package [#package]

[@mwillbanks/tuil-registry](/tuil/docs/reference/packages/registry)
