nuxt-modules / robots

Tame the robots crawling and indexing your Nuxt site.
https://nuxtseo.com/robots
412 stars 30 forks source link

feat: Add types for rules #93

Closed ExEr7um closed 2 months ago

ExEr7um commented 1 year ago

In this PR I added types for rules and some documentation on them.

Warning

I can't figure out a way to export type RuleSet, that I created, so I need help with that.

I don't think this PR should be merged without it, because in all my projects I have robots.config.ts file, so I need to import config type and have something like:

import { RuleSet } from "@nuxtjs/robots";

export default <RuleSet> {

};
ExEr7um commented 1 year ago

Can someone help me out with exporting type RuleSet?