How to use the @nuxt/utils.isString function in @nuxt/utils

To help you get started, we’ve selected a few @nuxt/utils examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github nuxt / nuxt.js / packages / generator / src / generator.js View on Github external
generateRoutes.forEach((route) => {
      // route is either a string or like { route : '/my_route/1', payload: {} }
      const path = isString(route) ? route : route.route
      routeMap[path] = {
        route: path,
        payload: route.payload || null
      }
    })
    return Object.values(routeMap)
github nuxt / nuxt.js / packages / builder / src / builder.js View on Github external
.map((serverMiddleware) => {
        if (isString(serverMiddleware)) {
          return serverMiddleware
        }
        if (isPureObject(serverMiddleware) && isString(serverMiddleware.handler)) {
          return serverMiddleware.handler
        }
      })
      .filter(Boolean)
github nuxt / nuxt.js / packages / builder / src / builder.js View on Github external
.map((serverMiddleware) => {
        if (isString(serverMiddleware)) {
          return serverMiddleware
        }
        if (isPureObject(serverMiddleware) && isString(serverMiddleware.handler)) {
          return serverMiddleware.handler
        }
      })
      .filter(Boolean)